summaryrefslogtreecommitdiffstats
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Report once that the device isn't there, but keep trying. Don'timp2004-09-291-21/+14
| | | | | filter the errno values. They don't make as much sense as they used to given how we do devices in /dev.
* Don't try to relocate the dynamic loader in reloc_non_plt(). It has alreadycognet2004-09-281-1/+4
| | | | been done before.
* Use add instead of saving the sp in a register.cognet2004-09-281-2/+1
|
* Indent.maxim2004-09-241-7/+7
|
* o Merge rev. 1.5 libexec/ftpd/ftpd.c from DragonflyBSD:maxim2004-09-241-0/+2
| | | | | | | | | | | | Do not unconditionally fork() after accept(). accept() can return -1 due to an interrupted system call (i.e. SIGCHLD). If we fork in that case ftpd can get into an accept()/SIGCHLD/fork/[fail]/repeat loop. Reported-by: fabian <fabian.duelli@bluewin.ch> Obtained from: DragonflyBSD MFC after: 1 month
* Add stubs for TLS.cognet2004-09-234-16/+32
| | | | Arbitraly choose the 2nd variant until I figure out which one I should use.
* Remove named-xfer, it does not exist in BIND 9.trhodes2004-09-221-30/+0
|
* Switch from BIND 8 to BIND 9.des2004-09-211-5/+0
| | | | | | Submitted by: (in part) dougb@, trhodes@ Reviewed by: dougb@, trhodes@, re@ MFC after: 5 days
* Avoid accidental use of ANSI C trigraphs.maxim2004-08-211-1/+2
| | | | | Spotted by: Pawel Worach Obtained from: NetBSD (rev. 1.11, 1.13)
* Add some details about our wonderful system.obrien2004-08-211-1/+17
|
* Turn on the FreeBSD login user capabilities database support.obrien2004-08-181-1/+1
|
* Instead of "OpenFirmware", "openfirmware", etc. use the official spellingmarius2004-08-161-1/+1
| | | | | | "Open Firmware" from IEEE 1275 and OpenFirmware.org (no pun intended). Ok'ed by: tmm
* Join the 21st century: Cryptography is no longer an optional componentcperciva2004-08-061-1/+0
| | | | | | | | | | of releases. The -DNOCRYPT build option still exists for anyone who really wants to build non-cryptographic binaries, but the "crypto" release distribution is now part of "base", and anyone installing from a release will get cryptographic binaries. Approved by: re (scottl), markm Discussed on: freebsd-current, in late April 2004
* Add stubs for powerpc TLS.dfr2004-08-043-5/+43
| | | | Submitted by: ssouhlal
* Add support for Thread Local Storage.dfr2004-08-0314-2/+883
|
* ftpd(8) seems to be WARNS=2 clean now.yar2004-07-311-0/+1
| | | | Tested on: i386, ia64, amd64, sparc64, alpha
* Change ``(foo *)0'' to ``NULL'' where it's possibleyar2004-07-312-11/+11
| | | | | | | (and it appears possible throughout ftpd(8) source.) It is not a mere issue of style: Null pointers in C seem to have been mistaken one way or another quite often.
* Kill a small herd of casts to off_t where they were not needed.yar2004-07-312-10/+9
| | | | | | Thank Fortune, the C compiler can figure out by itself the proper conversion for assignments, comparisons, and prototyped function arguments.
* Printf(3) off_t values through conversion to intmax_t sinceyar2004-07-312-10/+15
| | | | we've got <stdint.h> et al now. (This makes ftpd(8) WARNS=2 clean.)
* Kill an unused variable (heading to WARNS=2.)yar2004-07-311-1/+0
|
* Convert a couple of bogus null statements to the right form.yar2004-07-311-2/+2
| | | | (Heading to WARNS=2.)
* Ditto for (gid_t).yar2004-07-301-1/+1
|
* Kill casts to (uid_t) obviously left from the K&R era.yar2004-07-301-14/+14
| | | | | Prototyping library functions in header files has rendered them superfluous.
* Add a comment to explain that the loop around the call to bind(2)yar2004-07-301-0/+9
| | | | is not a hack, but it has a clear purpose.
* Open a socket for a data transfer in active mode using euidyar2004-07-301-1/+1
| | | | | | | | | | | | | | of the current user, not root. This will allow neat things like matching anonymous FTP data traffic with a single ipfw(8) rule: ipfw add ... tcp from any to any uid ftp Note that the control connection socket still belongs to the user ftpd(8) was started from, usually root. PR: bin/65928 Submitted by: Eugene Grosbein <eugen at grosbein.pp.ru> MFC after: 1 month
* Call nmatch function with parameters casted to types the function actuallykan2004-07-291-1/+1
| | | | expects.
* Fix a few cases that relied on 'implicit int' (constraint violation in C99).stefanf2004-07-111-1/+1
|
* mdoc(7) fixes.ru2004-07-071-2/+5
|
* Consistently use __inline instead of __inline__ as the former is an empty macrostefanf2004-07-041-2/+2
| | | | in <sys/cdefs.h> for compilers without support for inline.
* Deal with double whitespace.ru2004-07-031-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-0212-100/+195
|
* Removed trailing whitespace.ru2004-07-021-4/+4
|
* The call to setuid(2) subsequently causes setgroups(2) to fail. setgroups(2)csjp2004-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.
* Nuke COMPAT_43phk2004-06-251-150/+0
|
* Call tzset() at startup.brian2004-06-211-0/+3
| | | | Submitted by: Andrzej Toboƅa <ato@iem.pw.edu.pl>
* o Reduce path names in RRQ and WRQ packets by:brian2004-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.
* Fix the problem that surfaced with the new binutils import on sparc64tmm2004-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.
* This comment should have been removed in the previous commit.cognet2004-06-171-1/+0
| | | | Spotted out by: marcus, simon
* Woohoo !cognet2004-06-172-4/+0
| | | | the latest binutils import mades this gross hack useless, so just remove it.
* Commit a crude hack so we get sparc64 snapshots working again with aobrien2004-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.
* Fall out from Binutils 2.15: don't bulid the ld.so on Sparc64.obrien2004-06-171-0/+3
|
* Whitespace.bms2004-06-141-3/+3
|
* Do not depend on the global 'sockt' being initialized to 0;bms2004-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.
* Simplify conditional compilation logic some.obrien2004-06-131-11/+15
|
* give out a little more information in case of a missing dependencyeik2004-05-281-1/+6
| | | | | | | | PR: 56549 Submitted by: edwin Reviewed by: joerg, ru Approved by: joerg MFC after: 2 weeks
* - Close fd if fdopen(fd) fails.mdodd2004-05-251-1/+2
| | | | - Format return () to resemble the one 5 lines up.
* Add two new flags: -w, which allows new files to be created,mdodd2004-05-242-5/+32
| | | | | | and -U, which allows the umask to be set. Obtained from: Patton Electronics, Co.
* Include <stdlib.h> for exit() and abort() prototypes.stefanf2004-05-241-0/+1
| | | | Approved by: das (mentor)
* Include <netinet/in.h> for ntoh*() and hton*() prototypes.stefanf2004-05-242-0/+2
| | | | Approved by: das (mentor)
* Support basename and path based constrained matches.mdodd2004-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
OpenPOWER on IntegriCloud