summaryrefslogtreecommitdiffstats
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-2018-35/+35
|
* Format string paranoiakris2000-11-191-1/+1
|
* Format string paranoiakris2000-11-191-2/+2
|
* L_SET -> SEEK_SETkris2000-11-191-1/+1
| | | | Obtained from: OpenBSD
* Format string paranoiakris2000-11-191-1/+2
| | | | Obtained from: OpenBSD
* Don't use sizeof() on a pointer when we really wanted to measurekris2000-11-193-9/+4
| | | | | | | the length of the array. Noticed by: Christos Zoulas <christos@ZOULAS.COM> Obtained from: OpenBSD
* Check return code from login_tty. Allow getty to try and becomejwd2000-11-191-1/+12
| | | | | | | a daemon and session leader (thus allowing getty to be run from a shell command line or script). Partially Reviewed by: bde
* Go back to populating data_len in struct ngpppoe_init_data.brian2000-11-161-2/+4
|
* remove trailing periods from SEE ALSO.ben2000-11-154-5/+5
|
* Use Fx macro wherever possible.ru2000-11-142-2/+2
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-102-30/+27
|
* Fix to=auto in bootptab.dirk2000-11-101-6/+10
| | | | | | PR: misc/5574 Submitted by: Bart Robinson <lomew@marker.cs.utah.edu> Reviewed by: wollman
* Remove the superfluous call to _rtld_error() in symlook_default().jdp2000-11-071-2/+0
| | | | | | | The function's callers generate the error message when appropriate. This eliminates the message ``Undefined symbol "__register_frame_info"'' which was bogusly returned by dlerror() in some cases.
* Filter out some more magic environment variables used by libraries linkedkris2000-10-313-4/+11
| | | | | | | | with telnetd. This should really be done with a positive filter - i.e. only allow through a configured list of variables. Also do some buffer-safety cleanups while I'm here - I don't think these are exploitable.
* Use the new-style ngpppoe_init_data structure.brian2000-10-311-4/+2
| | | | Approved by: archie
* Add a MAINTAINER= line so people know who to blamegshapiro2000-10-262-0/+4
|
* 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
OpenPOWER on IntegriCloud