aboutsummaryrefslogtreecommitdiff
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Style fixesGregory Neil Shapiro2000-10-112-8/+8
| | | | Notes: svn path=/head/; revision=66961
* mail.local(8) is no longer installed as a set-user-id binary.Gregory Neil Shapiro2000-10-101-2/+0
| | | | | | | | Users may have to adjust their configuration to call mail.local as root by adding the F=S flag to the local mailer. Most probably already have this. Notes: svn path=/head/; revision=66942
* Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and therebyGarrett Wollman2000-10-103-2/+5
| | | | | | | <time.h>). Notes: svn path=/head/; revision=66907
* Make it compile without -DNO_PAM again.Ruslan Ermilov2000-10-062-1/+5
| | | | Notes: svn path=/head/; revision=66755
* o Load netgraph.ko, ng_ether.ko and ng_pppoe.ko as required (I'm sure thisBrian Somers2000-10-032-13/+66
| | | | | | | | | | | used not to be necessary). o Allow ``-n ngdebug'' to specify something to pass to NgSetDebug() and redirect NgSetDebug() output to syslog(8) in daemon() mode. o Xref ng_ether(8) and NgSetDebug(4). o Correct the type of the response passed to NgRecvData. Notes: svn path=/head/; revision=66602
* Add support for dlsym(RTLD_DEFAULT, ...).John Polstra2000-09-192-69/+97
| | | | Notes: svn path=/head/; revision=66056
* Give users a way to alter the sendmail (and related utilities) buildGregory Neil Shapiro2000-09-172-0/+12
| | | | | | | environment so they can enable functionality such as SASL, LDAP, Hesiod. Notes: svn path=/head/; revision=65970
* Some more slight doco fixes: update date, and add a bit more to the history.Garrett Wollman2000-09-141-2/+10
| | | | Notes: svn path=/head/; revision=65852
* Allow tftpd to run as a specified user, not just `nobody'.Garrett Wollman2000-09-142-28/+55
| | | | | | | | | | | | Update documentation to reflect new option. Also fix documentation style and add missing references. PR: 21268 Submitted by: "Aleksandr A. Babaylov" <babolo@links.ru> Reviewed by: imp Notes: svn path=/head/; revision=65850
* strerror is declared in <string.h>Warner Losh2000-09-041-3/+4
| | | | | | | errno is declared in <errno.h> Notes: svn path=/head/; revision=65426
* remove redundant optreset declarationWarner Losh2000-09-041-1/+0
| | | | Notes: svn path=/head/; revision=65425
* Pass two pointer parameters to the r_debug_state() hookJohn W. De Boskey2000-08-261-8/+18
| | | | | | | | | | | | | | | | | | function, thus allowing a debugger or other trace tool to easily grab the addresses of the needed structures off the stack. This change is transparent to gdb, which locates the link_map list and transfers it to debugger memory for comparison purposes. A sample program will be committed showing how this can be used. Reviewed by: John Polstra <jdp@FreeBSD.org> Notes: svn path=/head/; revision=65109
* Don't set an arbitrary limit on username lengths; use MAXLOGNAMESheldon Hearn2000-08-171-1/+1
| | | | | | | | | | instead. PR: 20675 Submitted by: Vladimir B Grebenschikov <vova@express.ru> Notes: svn path=/head/; revision=64778
* Fix `control socket: Protocol not supported' failure inRuslan Ermilov2000-08-161-3/+2
| | | | | | | standalone -D mode when neither -4 nor -6 is specified. Notes: svn path=/head/; revision=64699
* The rest of the changes needed to support the new version of sendmail (8.11.0).Gregory Neil Shapiro2000-08-122-5/+29
| | | | | | | | | Beyond changes to the build system, this includes fixing up the sample freebsd.mc configuration for changes in defaults and syntax, removing outdated documentation, and updating the release notes. Notes: svn path=/head/; revision=64567
* sprintf() -> snprintf() paranoia.Kris Kennaway2000-08-041-2/+2
| | | | Notes: svn path=/head/; revision=64238
* Honour skey.access(5) by allowing UNIX passwords when skeyaccess(3)Sheldon Hearn2000-08-011-4/+10
| | | | | | | | | | | | | | | has set pwok to a non-zero value. Previously, the fact that skey.access(5) allowed UNIX passwords for this connection attempt was ignored, even in the NOPAM case. This only addresses the NOPAM case; when libpam is used, the problem will persist. PR: 20333 Notes: svn path=/head/; revision=64103
* Add 'nc' flag to gettytab -- no carrier. Forces non-blocking open andNick Sayer2000-07-314-3/+7
| | | | | | | | | | setting of CLOCAL. Necessary for 3 wire RS-232 setups with dumb terminals. PR: 5959 Notes: svn path=/head/; revision=64076
* Make compilable without -DINET6.Hajimu UMEMOTO2000-07-281-6/+2
| | | | | | | | | | With shut up unused variable warnings. PR: bin/20225 Submitted by: Paul Herman <pherman@frenchfries.net> Notes: svn path=/head/; revision=63959
* Revamp the code that calls shared libraries' init and fini functions.John Polstra2000-07-262-106/+185
| | | | | | | | | | | | | | | | | | | | | | | | | Formerly the init functions were called in the opposite of the order in which libraries were loaded, and libraries were loaded according to a breadth-first traversal of the dependency graph. That ordering came from SVR4.0, and it was easy to implement but not always sensible. Now we do a depth-first walk over the dependency graph and call the init functions in an order such that each shared object's needed objects are initialized before the shared object itself. At the same time we build a list of finalization (fini) functions in the opposite order, to guarantee correct C++ destructor ordering whenever possible. (It may not be possible if dlopen and dlclose are used in strange ways, but we come as close as one can come.) The need for this renovation has become apparent as more programs have started using multithreading. The multithreaded C library libc_r requires initialization, whereas the standard libc does not. Since virtually every other object depends on the C library, it is important that it get initialized first. Notes: svn path=/head/; revision=63870
* We shouldn't use cp to save the old ld-elf.so.1. Use the sanctioned toolBrian Feldman2000-07-201-1/+2
| | | | | | | ${INSTALL} with -C -p instead. Notes: svn path=/head/; revision=63615
* Don't reply "not a plain file" when the requested file doesn't exist.Dag-Erling Smørgrav2000-07-171-2/+8
| | | | Notes: svn path=/head/; revision=63350
* Fix a bug which could cause programs with user threads packages toJohn Polstra2000-07-173-5/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lock against themselves, causing infinite spinning. Brian Feldman found this problem when testing with Mozilla and supplied the fix, which I have revised slightly. Here is the failure scenario. A thread calls dlopen() and acquires the writer lock. While the thread still holds the lock, a signal is delivered and caught. The signal handler tries to call a function which hasn't been bound yet. It thus enters the dynamic linker and tries to acquire the reader lock. Since the writer lock is already held, it will spin forever in the signal handler. The thread holding the lock won't be able to progress and release the lock. The solution is to block almost all signals while holding the exclusive lock. A similar problem could conceivably occur in the opposite order. Namely, a thread is holding the reader lock and then a signal handler calls dlopen() or dlclose() and spins waiting for the writer lock. We deal with this administratively by proclaiming that signal handlers aren't allowed to call dlopen() or dlclose(). Actually we don't have to proclaim a thing, since signal handlers aren't allowed to call any system functions except those which are explicitly permitted. Submitted by: Brian Fundakowski Feldman <green> Notes: svn path=/head/; revision=63316
* Don't call err() without a format string.Kris Kennaway2000-07-111-1/+1
| | | | Notes: svn path=/head/; revision=62983
* Explain that the -S option only logs file downloads, not all transfers.Ben Smithurst2000-07-111-1/+1
| | | | | | | | PR: 16934 Submitted by: Kurt Zeilenga <kurt@OpenLDAP.org> Notes: svn path=/head/; revision=62946
* Solve the dynamic linker's problems with multithreaded programs onceJohn Polstra2000-07-0810-334/+770
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and for all (I hope). Packages such as wine, JDK, and linuxthreads should no longer have any problems with re-entering the dynamic linker. This commit replaces the locking used in the dynamic linker with a new spinlock-based reader/writer lock implementation. Brian Fundakowski Feldman <green> argued for this from the very beginning, but it took me a long time to come around to his point of view. Spinlocks are the only kinds of locks that work with all thread packages. But on uniprocessor systems they can be inefficient, because while a contender for the lock is spinning the holder of the lock cannot make any progress toward releasing it. To alleviate this disadvantage I have borrowed a trick from Sleepycat's Berkeley DB implementation. When spinning for a lock, the requester does a nanosleep() call for 1 usec. each time around the loop. This will generally yield the CPU to other threads, allowing the lock holder to finish its business and release the lock. I chose 1 usec. as the minimum sleep which would with reasonable certainty not be rounded down to 0. The formerly machine-independent file "lockdflt.c" has been moved into the architecture-specific subdirectories by repository copy. It now contains the machine-dependent spinlocking code. For the spinlocks I used the very nifty "simple, non-scalable reader-preference lock" which I found at <http://www.cs.rochester.edu/u/scott/synchronization/pseudocode/rw.html> on all CPUs except the 80386 (the specific CPU model, not the architecture). The 80386 CPU doesn't support the necessary "cmpxchg" instruction, so on that CPU a simple exclusive test-and-set lock is used instead. 80386 CPUs are detected at initialization time by trying to execute "cmpxchg" and catching the resulting SIGILL signal. To reduce contention for the locks, I have revamped a couple of key data structures, permitting all common operations to be done under non-exclusive (reader) locking. The only operations that require exclusive locking now are the rare intrusive operations such as dlopen() and dlclose(). The dllockinit() interface is now deprecated. It still exists, but only as a do-nothing stub. I plan to remove it as soon as is reasonably possible. (From the very beginning it was clearly labeled as experimental and subject to change.) As far as I know, only the linuxthreads port uses dllockinit(). This interface turned out to have several problems. As one example, when the dynamic linker called a client-supplied locking function, that function sometimes needed lazy binding, causing re-entry into the dynamic linker and a big looping mess. And in any case, it turned out to be too burdensome to require threads packages to register themselves with the dynamic linker. Notes: svn path=/head/; revision=62801
* When installing the dynamic linker, save the previous version inJohn Polstra2000-07-081-0/+12
| | | | | | | | | | | | "ld-elf.so.1.old". The dynamic linker is a critical component of the system, and it is difficult to recover if it is damaged and there isn't a working backup available. For instance, parts of the toolchain such as the assembler are dynamically linked, making it impossible to build a new dynamic linker if the installed one doesn't work. Notes: svn path=/head/; revision=62800
* Plug the hole where rshd would bypass a proper .rhosts check if theBrian S. Dean2000-07-051-3/+2
| | | | | | | | | password was empty. Reviewed by: Warner Losh <imp@freebsd.org> Notes: svn path=/head/; revision=62643
* Only punctuation is an allowed argument type for open-close macrosSheldon Hearn2000-06-301-1/+2
| | | | | | | | | such as Po/Pc, as explained by phantom. Reported by: billf Notes: svn path=/head/; revision=62271
* Fix a problem in the virtual host address compare code which causedDavid Nugent2000-06-261-8/+11
| | | | | | | | | | duplicated host entries in /etc/ftphosts not to be folded. Make sure we exit the loop on a match. PR: bin/19390 Notes: svn path=/head/; revision=62100
* Switch over to using the new fflagstostr and strtofflags library calls.Josef Karthauser2000-06-171-2/+2
| | | | Notes: svn path=/head/; revision=61749
* Spelling fix: transfered --> transferredJonathan Lemon2000-06-021-1/+1
| | | | | | | Submitted by: dan@dan.emsphone.com Notes: svn path=/head/; revision=61187
* Back out the previous change to the queue(3) interface.Jake Burkholder2000-05-262-5/+5
| | | | | | | | | It was not discussed and should probably not happen. Requested by: msmith and others Notes: svn path=/head/; revision=60938
* 1. Add IPv6 portrange restriction code (-U flag) to passive().Nick Sayer2000-05-251-0/+31
| | | | | | | | 2. Add portrange restriction code (for both v4 and v6) to the EPSV processing stuff. Notes: svn path=/head/; revision=60929
* Change the way that the queue(3) structures are declared; don't assume thatJake Burkholder2000-05-232-5/+5
| | | | | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd Notes: svn path=/head/; revision=60833
* Eliminate unaligned accesses that occurred when relocating theJohn Polstra2000-05-221-12/+27
| | | | | | | | | DWARF2 exception tables emitted by the compiler for C++ sources. These tables are tightly packed, and they contain some relocated addresses which are not well-aligned. Notes: svn path=/head/; revision=60799
* Don't uselessly set MANDEPEND (it isn't used in this Makefile, and isn'tBruce Evans2000-05-151-9/+7
| | | | | | | | | | | | really used in bsd.man.mk). Don't uselessly set MANSRC ("." is in the path by default, and there are no ordering problems). Fixed some other style bugs. Notes: svn path=/head/; revision=60604
* Man page fixupsNick Sayer2000-05-151-4/+7
| | | | | | | Submitted by: sheldonh@uunet.co.za Notes: svn path=/head/; revision=60594
* IPv6 support.Hajimu UMEMOTO2000-05-141-10/+10
| | | | | | | Reviewed by: shin Notes: svn path=/head/; revision=60552
* Add -i (insecure) flag to rexecd, which allows uid == 0 loginsNick Sayer2000-05-132-4/+11
| | | | | | | | (presuming that the user in question is not in /etc/ftpusers and does not have a null password). Notes: svn path=/head/; revision=60507
* Minor mdoc cleanup.Mike Pritchard2000-05-051-2/+2
| | | | | | | PR: docs/13218 Notes: svn path=/head/; revision=60015
* Remove dead debug code.Jeroen Ruigrok van der Werven2000-04-291-8/+0
| | | | | | | This also removes a dependency/reference on COMPAT_43. Notes: svn path=/head/; revision=59748
* Cross-reference ldd(1) in rtld(1) and vice versa.Sheldon Hearn2000-03-281-0/+1
| | | | Notes: svn path=/head/; revision=58720
* Fixed missing DPADDs.Bruce Evans2000-03-271-4/+5
| | | | | | | | Fixed some style bugs (some usual ones for LDADD, and misformatting of $FreeBSD$). Notes: svn path=/head/; revision=58676
* Wrap uucpd behind the NOUUCP knob.Dan Moschuk2000-03-241-1/+4
| | | | | | | Noticed by: Doug Barton Notes: svn path=/head/; revision=58532
* Finally unifdef -DINTERNAL_LS.Ruslan Ermilov2000-03-131-1/+1
| | | | Notes: svn path=/head/; revision=57978
* Use libcrypto instead of libdes.Mark Murray2000-02-242-2/+2
| | | | Notes: svn path=/head/; revision=57453
* Support logging for IPv6 remote host.Yoshinobu Inoue2000-02-181-4/+5
| | | | | | | | | | Approved by: jkh PR: bin/16789 Submitted by: Ben Smithurst <ben@scientia.demon.co.uk Notes: svn path=/head/; revision=57313
* Doc fix: remove references to ~ftp/bin/ls as we have FTPD_INTERNAL_LSPeter Wemm2000-02-171-8/+0
| | | | | | | | | unconditionally active already. Noticed by: obrien Notes: svn path=/head/; revision=57267
* Add more dual stack consideration.Yoshinobu Inoue2000-02-101-19/+27
| | | | | | | | | | -ftpd need to know each of AF_INET and AF_INET6 addr for hosts specified in /etc/ftphosts. Approved by: jkh Notes: svn path=/head/; revision=57124