aboutsummaryrefslogtreecommitdiff
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Fix a few cases that relied on 'implicit int' (constraint violation in C99).Stefan Farfeleder2004-07-111-1/+1
| | | | Notes: svn path=/head/; revision=131990
* mdoc(7) fixes.Ruslan Ermilov2004-07-071-2/+5
| | | | Notes: svn path=/head/; revision=131754
* Consistently use __inline instead of __inline__ as the former is an empty macroStefan Farfeleder2004-07-041-2/+2
| | | | | | | in <sys/cdefs.h> for compilers without support for inline. Notes: svn path=/head/; revision=131575
* Deal with double whitespace.Ruslan Ermilov2004-07-031-1/+1
| | | | Notes: svn path=/head/; revision=131505
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-0212-100/+195
| | | | Notes: svn path=/head/; revision=131487
* Removed trailing whitespace.Ruslan Ermilov2004-07-021-4/+4
| | | | Notes: svn path=/head/; revision=131472
* The call to setuid(2) subsequently causes setgroups(2) to fail. setgroups(2)Christian S.J. Peron2004-06-301-2/+2
| | | | | | | | requires super-user access in order to complete successfully. Move setgroups(2) to execute before setuid(2) so that it is successful. Notes: svn path=/head/; revision=131358
* Nuke COMPAT_43Poul-Henning Kamp2004-06-251-150/+0
| | | | Notes: svn path=/head/; revision=131091
* Call tzset() at startup.Brian Somers2004-06-211-0/+3
| | | | | | | Submitted by: Andrzej ToboÅa <ato@iem.pw.edu.pl> Notes: svn path=/head/; revision=130839
* o Reduce path names in RRQ and WRQ packets by:Brian Somers2004-06-211-2/+34
| | | | | | | | | | | | | | | | | | | | Reducing "/+./" strings to "/" Reducing "/[^/]+/../" to "/" o Don't send an OACK when the result of the [RW]RQ is an error. These changes allow tftpd to interact with pxelinux.bin from the syslinux package. Whilst the path reducing code doesn't properly handle situations where the path component before the "/../" is a symlink to (say) ".", I would suggest that it does the right thing in terms of the clients perception of what their path string actually represents. This seems better than using realpath() and breaking environments where symlinks point outside of the directory hierarchy that tftpd is configured to allow. Notes: svn path=/head/; revision=130834
* Fix the problem that surfaced with the new binutils import on sparc64Thomas Moestl2004-06-183-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | (and that is for now being worked around by a binutils patch). The rtld code tested &_DYNAMIC against 0 to see whether rtld itself was built as PIC or not. While the sparc64 MD code did not rely on the preset value of the GOT slot for _DYNAMIC any more due to previous binutils changes, it still used to not be 0, so that this check did work. The new binutils do however initialize this slot with 0. As a consequence, rtld would not properly initialize itself and crash. Fix that by introducing a new macro, RTLD_IS_DYNAMIC, to take the role of this test. For sparc64, it is implemented using the rtld_dynamic() code that was already there. If an architecture does not provide its own implementation, we default to the old check. While being there, mark _DYNAMIC as a weak symbol in the sparc64 rtld_start.S. This is needed in the LDSCRIPT case, which is however not currently supported for want of an actual ldscript. Sanity checked with md5 on alpha, amd64, i386 and ia64. Notes: svn path=/head/; revision=130661
* This comment should have been removed in the previous commit.Olivier Houchard2004-06-171-1/+0
| | | | | | | Spotted out by: marcus, simon Notes: svn path=/head/; revision=130649
* Woohoo !Olivier Houchard2004-06-172-4/+0
| | | | | | | the latest binutils import mades this gross hack useless, so just remove it. Notes: svn path=/head/; revision=130646
* Commit a crude hack so we get sparc64 snapshots working again with aDavid E. O'Brien2004-06-171-3/+0
| | | | | | | | | stable ld.so. We need to revisit the rtld-elf/sparc64/rtld_start.S rev. 1.5 and rtld-elf/sparc64/rtld_machdep.h rev. 1.5, which was suppose to allow stock Binutils 2.13 (and later) to be used. Notes: svn path=/head/; revision=130635
* Fall out from Binutils 2.15: don't bulid the ld.so on Sparc64.David E. O'Brien2004-06-171-0/+3
| | | | Notes: svn path=/head/; revision=130622
* Whitespace.Bruce M Simpson2004-06-141-3/+3
| | | | Notes: svn path=/head/; revision=130496
* Do not depend on the global 'sockt' being initialized to 0;Bruce M Simpson2004-06-141-3/+2
| | | | | | | | | instead, use the symbolic constant STDIN_FILENO, as this is a daemon invoked from inetd. Remove 'sockt' as it is not referenced. Notes: svn path=/head/; revision=130495
* Simplify conditional compilation logic some.David E. O'Brien2004-06-131-11/+15
| | | | Notes: svn path=/head/; revision=130428
* give out a little more information in case of a missing dependencyOliver Eikemeier2004-05-281-1/+6
| | | | | | | | | | | PR: 56549 Submitted by: edwin Reviewed by: joerg, ru Approved by: joerg MFC after: 2 weeks Notes: svn path=/head/; revision=129792
* - Close fd if fdopen(fd) fails.Matthew N. Dodd2004-05-251-1/+2
| | | | | | | - Format return () to resemble the one 5 lines up. Notes: svn path=/head/; revision=129683
* Add two new flags: -w, which allows new files to be created,Matthew N. Dodd2004-05-242-5/+32
| | | | | | | | | and -U, which allows the umask to be set. Obtained from: Patton Electronics, Co. Notes: svn path=/head/; revision=129680
* Include <stdlib.h> for exit() and abort() prototypes.Stefan Farfeleder2004-05-241-0/+1
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129658
* Include <netinet/in.h> for ntoh*() and hton*() prototypes.Stefan Farfeleder2004-05-242-0/+2
| | | | | | | Approved by: das (mentor) Notes: svn path=/head/; revision=129652
* Support basename and path based constrained matches.Matthew N. Dodd2004-05-241-1/+29
| | | | | | | | | | | | | | | | | | | | | eg: [foo] ... matches any executable 'foo' [/usr/bin/foo/] ... matches any executable under the directory /usr/bin/foo/ Exact matches continue to function as before. PR: bin/66769 Submitted-by: Dan Nelson Notes: svn path=/head/; revision=129638
* Markup fixes.Ruslan Ermilov2004-05-161-8/+11
| | | | Notes: svn path=/head/; revision=129307
* Markup nit.Ruslan Ermilov2004-05-161-1/+1
| | | | Notes: svn path=/head/; revision=129306
* There's no such beast like AF_INET4, even when powered by whiskey.Ruslan Ermilov2004-05-161-1/+1
| | | | Notes: svn path=/head/; revision=129304
* Bump document date for the latest change.Ruslan Ermilov2004-05-161-3/+3
| | | | | | | Minor markup tweaks. Notes: svn path=/head/; revision=129303
* Work around a problem somewhere with binutils (?) on arm, hopefully withoutOlivier Houchard2004-05-152-0/+5
| | | | | | | breaking any other arch this time. Notes: svn path=/head/; revision=129258
* Fix breakage caused by alphabetically sorting SRCS: rtld_start.S must come ↵Stefan Eßer2004-05-141-1/+2
| | | | | | | | | first! The previous version made all shared binaries dump core. Notes: svn path=/head/; revision=129242
* Import arm bits for rtld-elf.Olivier Houchard2004-05-146-2/+684
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=129204
* Handle variable argument lists correctly in reply() and lreply().Tim J. Robbins2004-05-131-2/+8
| | | | | | | | | In particular, do not pass the same va_list to both vprintf() and vsyslog() without first reinitializing it. This fixes ftpd -d on amd64. Notes: svn path=/head/; revision=129170
* Cast the terminating NULL to char * in the execl() call.Maxime Henrion2004-04-041-1/+1
| | | | | | | Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Notes: svn path=/head/; revision=127864
* If we change obj_rtld.path after initialising __progname, make sure weDoug Rabson2004-03-291-0/+1
| | | | | | | | change __progname to point at the new storage otherwise it ends up pointing at freed memory which leads to confusing garbled error messages. Notes: svn path=/head/; revision=127579
* Make fingerd(8) WARNS2 clean.Pawel Jakub Dawidek2004-03-292-1/+2
| | | | Notes: svn path=/head/; revision=127560
* More stack alignment fixes. Arrange so we call _rtld() in ld-elf.so.1Peter Wemm2004-03-211-8/+9
| | | | | | | | | | | | with the correct alignment. This is important because this calls to library static constructors are made from here. The bug in the old crt*.s files hid this because in this case, two wrongs do indeed make a right. Also, call _rtld_bind() with the correct alignment, because it calls back into the pthread library locking functions. If things happen just the wrong way, we get a SIG10 due to the broken stack alignment. Notes: svn path=/head/; revision=127254
* Add initial support for compiling a special 32 bit version ofPeter Wemm2004-03-216-19/+78
| | | | | | | | | | ld-elf.so.1 on 64 bit systems. Most of this involves using alternate paths, environment variables and diagnostic messages. The build glue is seperate. Notes: svn path=/head/; revision=127250
* Fixed a misspelling of 0 as NULL.Bruce Evans2004-03-141-1/+1
| | | | Notes: svn path=/head/; revision=126952
* Link pf to the build and install:Max Laier2004-03-081-0/+5
| | | | | | | | | | | | | | | | | | | This adds the former ports registered groups: proxy and authpf as well as the proxy user. Make sure to run mergemaster -p in oder to complete make installworld without errors. This also provides the passive OS fingerprints from OpenBSD (pf.os) and an example pf.conf. For those who want to go without pf; it provides a NO_PF knob to make.conf. __FreeBSD_version will be bumped soon to reflect this and to be able to change ports accordingly. Approved by: bms(mentor) Notes: svn path=/head/; revision=126756
* Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)Mark Murray2004-03-051-4/+4
| | | | | | | | | | | | | | | | | | that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C). There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK. Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other". Tested on: i386 sparc64 Notes: svn path=/head/; revision=126643
* Add skeleton build dirs for pf userland:Max Laier2004-02-281-0/+12
| | | | | | | | | | | | | | | | | | | | | libexec/ftp-proxy - ftp proxy for pf sbin/pfctl - equivalent to sbin/ipf sbin/pflogd - deamon logging packets via if_pflog in pcap format usr.sbin/authpf - authentification shell to modify pf rulesets Bring along some altq headers used to satisfy pfctl/authpf compile. This helps to keep the diff down and will make it easy to have a altq-patchset use the full powers of pf. Also make sure that the pf headers are installed. This does not link anything to the build. There will be a NO_PF switch for make.conf once pf userland is linked. Approved by: bms(mentor) Notes: svn path=/head/; revision=126385
* Do not depend on existence of _end symbol in obj_from_addr, useAlexander Kabaev2004-02-251-8/+1
| | | | | | | | | obj->mapbase and obj->mapsize instead. Prompted by: OpenOffice debugging session at last BSDCon. Notes: svn path=/head/; revision=126236
* Don't pass a pointer to a 'long' to a function that expects an 'int *'.David Schultz2004-02-161-2/+2
| | | | | | | | Submitted by: Roop Nanuwa <roop@hqst.com> PR: 62615 Notes: svn path=/head/; revision=125868
* Add the '-h hostname' to usage(), too.Peter Pentchev2004-02-131-1/+3
| | | | | | | | | | | While I'm here, sync the usage() synopsis with the manual page synopsis: make the [-i | -s] explicit and sort the options alphabetically. Reminded by: ru MFC after: 3 days Notes: svn path=/head/; revision=125769
* Document the '-h hostname' option, which seems to have been presentPeter Pentchev2004-02-101-7/+14
| | | | | | | | | | | | ever since rev. 1.1 of bootpd.c. While I'm here, rearrange the synopsis a bit: sort the options and clarify that -i and -s are mutually exclusive. Reported by: Atanas Buchvarov <nasko@nove.bg> MFC after: 3 days Notes: svn path=/head/; revision=125654
* NULL looks better than (char *)0 unless we're passingYaroslav Tykhiy2004-02-071-1/+1
| | | | | | | an unprototyped argument to a function. Notes: svn path=/head/; revision=125570
* Deny attempts to rename a file from guest users if the policyYaroslav Tykhiy2004-02-071-0/+4
| | | | | | | | | | | | says they may not modify existing files through FTP. Renaming a file is effectively a way to modify it. For instance, if a malicious party is unable to delete or overwrite a sensitive file, they can nevertheless rename it to a hidden name and then upload a troyan horse under the guise of the old file name. Notes: svn path=/head/; revision=125569
* perror_reply() should not be used where errno isn't meaningful.Yaroslav Tykhiy2004-02-071-1/+5
| | | | Notes: svn path=/head/; revision=125568
* Work around a bug in some clients by never returning raw directoryYaroslav Tykhiy2004-02-071-1/+8
| | | | | | | | | | | | contents in reply to a RETR command. Such clients consider RETR as a way to tell a file from a directory. Mozilla is an example. PR: bin/62232 Submitted by: Bob Finch <bob+freebsd <at> nas <dot> com> MFC after: 1 week Notes: svn path=/head/; revision=125565
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).Ruslan Ermilov2004-02-051-2/+2
| | | | Notes: svn path=/head/; revision=125503