summaryrefslogtreecommitdiffstats
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Change many asserts into normal errors. They were all for conditionsjdp1999-07-183-39/+65
| | | | | | caused by invalid shared objects rather than by internal errors. Enable format string mismatch checking for _rtld_error().
* Change the symbol used to find the end of an object's address spacejdp1999-07-141-2/+2
| | | | | from "end" to "_end". The former does not exist in most shared libraries. This fixes problems in dladdr() and dlsym(RTLD_NEXT, ...).
* Fix a couple of typos.mpp1999-07-121-3/+3
| | | | | PR: 12610 Submitted by: Seth <seth@freebie.dp.ny.frb.org>
* Add code to 'handle' R_ALPHA_NONE relocations by ignoring them.dfr1999-07-121-1/+4
|
* Add a MAINTAINER line naming myself. We control the vertical. Wejdp1999-07-091-1/+2
| | | | control the horizontal.
* Fix bug: if a dlopen() failed (e.g., because of undefined symbols),jdp1999-07-091-38/+44
| | | | | | | | | | the dynamic linker didn't clean up properly. A subsequent dlopen() of the same object would appear to succeed. Another excellent fix from Max Khon. PR: bin/12471 Submitted by: Max Khon <fjoe@iclub.nsu.ru>
* Shake hands with GDB a little bit earlier so that it is possible tojdp1999-07-031-3/+3
| | | | | | debug the init functions. Submitted by: dfr
* Update the SYNOPSIS to reflect that the -l option can be specifiedmpp1999-06-281-2/+3
| | | | | | more than once. Pointed-out-by: sheldonh
* Fix a reference counting problem when using dlopen(NULL, ...).jdp1999-06-251-3/+4
| | | | PR: bin/12129
* Fix a serious performance bug for large programs on the Alpha,jdp1999-06-257-103/+231
| | | | | | | | | | | | | | | discovered by Hidetoshi Shimokawa. Large programs need multiple GOTs. The lazy binding stub in the PLT can be reached from any of these GOTs, but the dynamic linker only has enough information to fix up the first GOT entry. Thus calls through the other GOTs went through the time-consuming lazy binding process on every call. This fix rewrites the PLT entries themselves to bypass the lazy binding. Tested by Hidetoshi Shimokawa and Steve Price. Reviewed by: Doug Rabson <dfr@freebsd.org>
* Identify illegal switches, don't print them as '?' in the error..peter1999-05-181-2/+2
|
* Fix ypxfr so that it can be run from cron.wpaul1999-05-101-4/+4
| | | | Patch submitted by: Dan Nelson <dnelson@emsphone.com>
* Add missing -A option to SYNOPSIS.ghelmer1999-05-041-1/+2
| | | | PR: docs/10771
* More egcs warning fixes:imp1999-04-257-14/+19
| | | | | | | | | | o main returns int not void o use return 0 at end of main when needed o use braces to avoid potentially ambiguous else o don't default to type int (and also remove a useless register modifier). Reviewed by: obrien and chuckr
* Back out my change from 6 April PDT that added a new dlversion()jdp1999-04-221-16/+1
| | | | | | | function. It was an ill-considered feature. It didn't solve the problem I wanted it to solve. And it added Yet Another Version Number that would have to be maintained at every release point. I'm nuking it now before anybody grows too fond of it.
* After relocating the main program, but before calling any of thejdp1999-04-211-7/+33
| | | | | | _init() functions, initialize the global variables "__progname" and "environ". This makes it possible for the _init() functions to call things like getenv() and err().
* The ELF specification says that the RPATH in the executable orjdp1999-04-091-4/+4
| | | | | shared object takes precedence over LD_LIBRARY_PATH. Make the dynamic linker do it that way.
* Eliminate all machine-dependent code from the main source body andjdp1999-04-0914-88/+488
| | | | | | | | | | | | | | | the Makefile, and move it down into the architecture-specific subdirectories. Eliminate an asm() statement for the i386. Make the dynamic linker work if it is built as an executable instead of as a shared library. See i386/Makefile.inc to find out how to do it. Note, this change is not enabled and it might never be enabled. But it might be useful in the future. Building the dynamic linker as an executable should make it start up faster, because it won't have any relocations. But in practice I suspect the difference is negligible.
* Determine the host name using an array size ofbrian1999-04-081-2/+3
| | | | | | | | | MAXHOSTNAMELEN and call trimdomain() before implementing the -u option. This allows local hosts of a lan with a long domain name to appear properly in utmp by base host name (w/o domain) rather than by IP number.
* Really fix -u....brian1999-04-071-2/+6
|
* Ensure that things returned by gethostname() andbrian1999-04-0713-43/+52
| | | | | | | | | | friends are terminated and allow for a maximum host name length of MAXHOSTNAMELEN - 1. Put parenthesis around sizeof args. Make some variables static. Fix telnetd -u (broken by my last commit) Prompted by: bde
* Fix the size of rhost, don't forget to NUL terminatebrian1999-04-071-2/+3
| | | | | it and use brackets for sizeof. Requested by: bde
* Fix a couple of typos in comments.jdp1999-04-071-3/+3
|
* Add a new function dlversion() which returns the version number ofjdp1999-04-071-1/+16
| | | | | | the dynamic linker in the same form as __FreeBSD_version. This is mainly intended for checking the dynamic linker version during a make world.
* Link with libutilbrian1999-04-062-4/+6
|
* Use realhostname() rather than various combinations ofbrian1999-04-069-170/+51
| | | | | | gethostbyaddr() & gethostbyname(). Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.
* After receiving a connection and doing a reversebrian1999-04-061-2/+18
| | | | | | | | | | lookup on the incoming IP, do a forward lookup on the result and make sure that the IP is in the resulting list. If it's not, put the IP number in utmp/wtmp instead of the rogue name. Stolen from: rlogind Suggested by: sef
* Resolve undefined weak references to a value of 0. This solves thejdp1999-04-051-1/+13
| | | | | | "__deregister_frame_info" problem that was seen when combining a program linked using the old gcc with shared libraries that were built using egcs.
* If somebody does an execv("foo", NULL) (which theoretically is an error),peter1999-04-041-2/+2
| | | | | | | avoid crashing inside rtld (since it's easy) since everything else handles it. Of course, if the target program checks argv[], it'll fall over. Reviewed by: jdp
* Add an 'al' (autologin username) capability to getty/gettytab. This is apeter1999-04-044-7/+27
| | | | | | | | | | damn useful thing for using with serial consoles in clusters etc or secure console locations. Using a custom gettytab entry for console with an entry like 'al=root' means that there is *always* a root login ready on the console. This should replace hacks like those which go with conserver etc. (This is a loaded gun, watch out for those feet!) Submitted by: "Andrew J. Korty" <ajk@purdue.edu>
* Ignore empty usernames, and repeat the login: prompt in this case.joerg1999-03-301-6/+10
| | | | | | | | | | | There's not much point in having uucpd behave differently than login(1) for this, and now uucpd is compatible to the default chat script of Taylor UUCP which sends a single \r at first. While i was at it, added a few strategic ``errno = 0;''s, so at least an `Undefined error 0' will be returned for things like a closed connection while reading the login ID or password, as opposed to an even more bogus thing like `No such file or directory'.
* - Commit the correct dladdr() implementation.nate1999-03-241-7/+14
| | | | Reviewed by: jdp@FreeBSD.org <This is the version he reviewed!>
* - Added dladdr(3) support.nate1999-03-241-1/+47
| | | | Reviewed by: jdp@FreeBSD.org
* Set the CPU resource limit back to infinity before exec()ing PP.brian1999-03-091-1/+4
| | | | PR: 10399
* Clean up some .Os macro uses: quotes are not needed, multiple argumentsfenner1999-02-152-4/+4
| | | | | don't really work if the first one isn't "FreeBSD", and "FreeBSD-Experimental" isn't an OS name.
* - Set the system immutable flag when installing ld.so to avoid peoplenate1999-02-151-2/+3
| | | | | | accidentally clobbering it. Submitted by: numberous people on -current
* Oops, I missed a few more /etc/nologin references yesterday. It appearsasami1999-01-123-8/+8
| | | | | | my check of the tree was incomplete. Sorry guys. Reported by: Ben Smithurst <ben@scientia.demon.co.uk>
* As previously threatened, clean up the rshd -a option and make it defaultpeter1998-12-163-111/+50
| | | | | | | | | | | | | | | | on rshd and rlogind. However, note that: 1: rshd used to drop a connection with -a if the hostname != ip address. This is unneeded, because iruserok() does it's own checking. It was also wrong if .rhosts had an explicit IP address in it, connections would be dropped from that host solely because the DNS was mismatched even though it was explicitly intended to work by IP address. 2: rlogind and rshd check the hostname mappings by default now because that is what goes into the utmp/wtmp and logs. If the hostname != ip address, then it uses the IP address for logging/utmp/wtmp purposes. There isn't much point logging ficticious hostnames. 3: rshd -a is now accepted (but ignored) for compatability. If you really want to make life miserable for people with bad reverse DNS, use tcpd in paranoid mode (which is questionable anyway, given DNS ttl tweaking).
* Old stuff laying around: Don't use a function called getstr(), that haspeter1998-12-161-6/+6
| | | | | nasty consequences when the system curses is ncurses as this conflicts with a ncurses funciton and causes recursion.
* Block for buffer overflow.eivind1998-12-131-1/+3
|
* PR: bin/9031dillon1998-12-121-2/+2
| | | | Changed unbounded strcpy() to snprintf() to fix buffer overrun exploit
* Fixed long line in previous commit.bde1998-12-031-2/+3
|
* Update to correctly reflect the default values ofbillf1998-12-021-2/+2
| | | | | | | net.inet.ip.portrange.hifirst and net.inet.ip.portrange.hilast PR: docs/6745 Submitted by: Masachika Ishizuka <ishizuka@ish.org>
* Added a -D option to turn on TCP_NODELAY.dg1998-12-012-5/+18
|
* Reviewed by: freebsd-current, freebsd-securitydillon1998-12-011-1/+6
| | | | | | Removed getuid() root check so ntalkd can be run from a tty sandbox. It isn't suid root anyway, who knows why the getuid() check was even in there in the first place!
* Use the runpath of the main program for locating libraries loaded bydfr1998-11-271-2/+2
| | | | | | dlopen(). Reviewed by: jdp
* Find "klogin.c" in "src/lib/libpam/modules/pam_kerberosIV" insteadjdp1998-11-211-2/+2
| | | | | of in "src/usr.bin/login". The latter instance is going away. As soon as ftpd is PAMized, it won't need to use klogin.c at all.
* Enable named-xfer and rbootd for alpha.dima1998-11-101-14/+5
|
* Fix a bug in the handling of minor version numbers. Formerly, thejdp1998-11-071-13/+34
| | | | | | | | | | | | | | | | rtld would accept the first shared library it found with the right major version number, even if the minor version number was too low. If a different version of the shared library with an adequate minor version number appeared later in the search path, it would not be found. Now the rtld searches all locations first looking for a library with a minor version that is high enough. Only if such a library is not found will it fall back to accepting a minor version number that is too low. As before, a warning comes out in that case. This solves some problems encountered when building an older world on a -current system.
* Rename a function name so that it doesn't conflict with a future system call.dg1998-10-301-5/+5
|
OpenPOWER on IntegriCloud