summaryrefslogtreecommitdiffstats
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken PAM with SKEY behaviour: the skey.access file checksguido2000-10-121-7/+8
| | | | were broken because the code failed to set PAM_RHOST.
* Removed broken PAM support from rshd(8) and rlogind(8). rshd doesru2000-10-125-202/+1
| | | | | | | not allocate a pty(4) so it is not suitable at all for interactive PAM modules. rlogind calls login(1) which is already PAM enabled. Approved by: markm
* Style fixesgshapiro2000-10-112-8/+8
|
* mail.local(8) is no longer installed as a set-user-id binary.gshapiro2000-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.
* Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and therebywollman2000-10-103-2/+5
| | | | <time.h>).
* Make it compile without -DNO_PAM again.ru2000-10-062-1/+5
|
* o Load netgraph.ko, ng_ether.ko and ng_pppoe.ko as required (I'm sure thisbrian2000-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.
* Add support for dlsym(RTLD_DEFAULT, ...).jdp2000-09-192-69/+97
|
* Give users a way to alter the sendmail (and related utilities) buildgshapiro2000-09-172-0/+12
| | | | environment so they can enable functionality such as SASL, LDAP, Hesiod.
* Some more slight doco fixes: update date, and add a bit more to the history.wollman2000-09-141-2/+10
|
* Allow tftpd to run as a specified user, not just `nobody'.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
* strerror is declared in <string.h>imp2000-09-041-3/+4
| | | | errno is declared in <errno.h>
* remove redundant optreset declarationimp2000-09-041-1/+0
|
* Pass two pointer parameters to the r_debug_state() hookjwd2000-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>
* Don't set an arbitrary limit on username lengths; use MAXLOGNAMEsheldonh2000-08-171-1/+1
| | | | | | | instead. PR: 20675 Submitted by: Vladimir B Grebenschikov <vova@express.ru>
* Fix `control socket: Protocol not supported' failure inru2000-08-161-3/+2
| | | | standalone -D mode when neither -4 nor -6 is specified.
* The rest of the changes needed to support the new version of sendmail (8.11.0).gshapiro2000-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.
* sprintf() -> snprintf() paranoia.kris2000-08-041-2/+2
|
* Honour skey.access(5) by allowing UNIX passwords when skeyaccess(3)sheldonh2000-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
* Add 'nc' flag to gettytab -- no carrier. Forces non-blocking open andnsayer2000-07-314-3/+7
| | | | | | | setting of CLOCAL. Necessary for 3 wire RS-232 setups with dumb terminals. PR: 5959
* Make compilable without -DINET6.ume2000-07-281-6/+2
| | | | | | | With shut up unused variable warnings. PR: bin/20225 Submitted by: Paul Herman <pherman@frenchfries.net>
* Revamp the code that calls shared libraries' init and fini functions.jdp2000-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.
* We shouldn't use cp to save the old ld-elf.so.1. Use the sanctioned toolgreen2000-07-201-1/+2
| | | | ${INSTALL} with -C -p instead.
* Don't reply "not a plain file" when the requested file doesn't exist.des2000-07-171-2/+8
|
* Fix a bug which could cause programs with user threads packages tojdp2000-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>
* Don't call err() without a format string.kris2000-07-111-1/+1
|
* Explain that the -S option only logs file downloads, not all transfers.ben2000-07-111-1/+1
| | | | | PR: 16934 Submitted by: Kurt Zeilenga <kurt@OpenLDAP.org>
* Solve the dynamic linker's problems with multithreaded programs oncejdp2000-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.
* When installing the dynamic linker, save the previous version injdp2000-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.
* Plug the hole where rshd would bypass a proper .rhosts check if thebsd2000-07-051-3/+2
| | | | | | password was empty. Reviewed by: Warner Losh <imp@freebsd.org>
* Only punctuation is an allowed argument type for open-close macrossheldonh2000-06-301-1/+2
| | | | | | such as Po/Pc, as explained by phantom. Reported by: billf
* Fix a problem in the virtual host address compare code which causeddavidn2000-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
* Switch over to using the new fflagstostr and strtofflags library calls.joe2000-06-171-2/+2
|
* Spelling fix: transfered --> transferredjlemon2000-06-021-1/+1
| | | | Submitted by: dan@dan.emsphone.com
* Back out the previous change to the queue(3) interface.jake2000-05-262-5/+5
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* 1. Add IPv6 portrange restriction code (-U flag) to passive().nsayer2000-05-251-0/+31
| | | | | 2. Add portrange restriction code (for both v4 and v6) to the EPSV processing stuff.
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-232-5/+5
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* Eliminate unaligned accesses that occurred when relocating thejdp2000-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.
* Don't uselessly set MANDEPEND (it isn't used in this Makefile, and isn'tbde2000-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.
* Man page fixupsnsayer2000-05-151-4/+7
| | | | Submitted by: sheldonh@uunet.co.za
* IPv6 support.ume2000-05-141-10/+10
| | | | Reviewed by: shin
* Add -i (insecure) flag to rexecd, which allows uid == 0 loginsnsayer2000-05-132-4/+11
| | | | | (presuming that the user in question is not in /etc/ftpusers and does not have a null password).
* Minor mdoc cleanup.mpp2000-05-051-2/+2
| | | | PR: docs/13218
* Remove dead debug code.asmodai2000-04-291-8/+0
| | | | This also removes a dependency/reference on COMPAT_43.
* Cross-reference ldd(1) in rtld(1) and vice versa.sheldonh2000-03-281-0/+1
|
* Fixed missing DPADDs.bde2000-03-271-4/+5
| | | | | Fixed some style bugs (some usual ones for LDADD, and misformatting of $FreeBSD$).
* Wrap uucpd behind the NOUUCP knob.dan2000-03-241-1/+4
| | | | Noticed by: Doug Barton
* Finally unifdef -DINTERNAL_LS.ru2000-03-131-1/+1
|
* Use libcrypto instead of libdes.markm2000-02-242-2/+2
|
* Support logging for IPv6 remote host.shin2000-02-181-4/+5
| | | | | | | Approved by: jkh PR: bin/16789 Submitted by: Ben Smithurst <ben@scientia.demon.co.uk
OpenPOWER on IntegriCloud