summaryrefslogtreecommitdiffstats
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Set the user context correctly so that cd ~ does the right thing.des1998-10-131-9/+4
| | | | | | PR: bin/7943 bin/8293 Submitted by: Bill Fenner <fenner@parc.xerox.com> Approved by: jkh
* Fix a bug in dlclose that broke the apache13 port. The list ofjdp1998-10-131-1/+2
| | | | loaded objects wasn't being maintained properly.
* This thing has its own puts function, so use it.jkh1998-10-081-1/+3
| | | | Submitted by: Matthew Jacob <mjacob@nas.nasa.gov>
* Fix a memory leak in rpc.rstatd that shows up when it's run in standaloneken1998-10-081-1/+7
| | | | | | mode. (i.e., not from inetd) PR: bin/8212
* Added double quotes around CHMOD description to prevent garbled output.alex1998-09-291-2/+2
| | | | | PR: 8094 Submitted by: Christoph Weber-Fahr <wefa@callcenter.systemhaus.net>
* Make LD_PRELOAD work for ELF.jdp1998-09-221-1/+38
|
* Remove useless `BINOWN=root' now that it is the default.obrien1998-09-191-2/+1
|
* Work around an alpha compiler bug.dfr1998-09-161-4/+5
| | | | Reviewed by: Kenneth D. Merry <ken@plutotech.com>
* Fix a bug that showed up when debugging dynamically linked programs.jdp1998-09-161-3/+13
| | | | | | | | | | | | | | | | | | | References from GDB to "printf" and various other functions would find the versions in the dynamic linker itself, rather than the versions in the program's libc. This fix moves the GDB link map entry for the dynamic linker to the end of the search list, where its symbols will be found only if they are not found anywhere else. It was suggested by Doug Rabson, though I implemented it a little differently. I personally would prefer to leave the dynamic linker's entry out of the GDB search list altogether. But Doug argues that it is handy there for such things as setting breakpoints on dlopen(). So it stays for now, at least. Note, if we ever integrate the dynamic linker with libc (which has several important benefits to recommend it), this whole problem goes away.
* Make the pathname pointed to by the Obj_Entry structure for thejdp1998-09-151-3/+11
| | | | | | dynamic linker itself dynamically allocated. All of them are supposed to be dynamically allocated, but we cheated before. It made gdb unhappy under some circumstances.
OpenPOWER on IntegriCloud