aboutsummaryrefslogtreecommitdiff
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* unifdef -DINTERNAL_LS - it's too useful to be off by default. If anyonePeter Wemm1999-08-265-32/+7
| | | | | | | | really dislikes this, we could add a switch to disable it at runtime and check in popen.c. Notes: svn path=/head/; revision=50380
* Ufff. cflags -> chflags. I could have sworn this change has been inWarner Losh1999-08-211-3/+3
| | | | | | | | | my last three successful make buildworlds... Noticed by: phk Notes: svn path=/head/; revision=50132
* Remove all flags from devices before we try to assert ownership andWarner Losh1999-08-211-1/+3
| | | | | | | | | | set permissions. Bug not fixed: We silently ignore failures of chflags, chmod and chown. Notes: svn path=/head/; revision=50123
* Add a NULL pointer check whose absence could cause segmentationJohn Polstra1999-08-201-6/+6
| | | | | | | | | | violations in certain obscure cases involving failed dlopens. Many thanks to Archie Cobbs for providing me with a good test case. Eliminate a block that existed only to localize a declaration. Notes: svn path=/head/; revision=50096
* Back out previous commit - it's not necessary now that tty.h properly includesJordan K. Hubbard1999-08-091-2/+1
| | | | | | | the queue macros. Notes: svn path=/head/; revision=49557
* Add a missing include (sys/queue.h for sys/tty.h SLIST usage.)Brian Feldman1999-08-091-1/+2
| | | | Notes: svn path=/head/; revision=49554
* Correction to previous commit.Gene Stark1999-08-081-9/+5
| | | | Notes: svn path=/head/; revision=49507
* Corrected mistake that was causing daemon to loop without servingGene Stark1999-08-081-2/+2
| | | | | | | | user requests. Note that nothing can be said about the value of 'user' unless User != NULL. Notes: svn path=/head/; revision=49505
* Change many asserts into normal errors. They were all for conditionsJohn Polstra1999-07-183-39/+65
| | | | | | | | | caused by invalid shared objects rather than by internal errors. Enable format string mismatch checking for _rtld_error(). Notes: svn path=/head/; revision=48871
* Change the symbol used to find the end of an object's address spaceJohn Polstra1999-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, ...). Notes: svn path=/head/; revision=48805
* Fix a couple of typos.Mike Pritchard1999-07-121-3/+3
| | | | | | | | PR: 12610 Submitted by: Seth <seth@freebie.dp.ny.frb.org> Notes: svn path=/head/; revision=48786
* Add code to 'handle' R_ALPHA_NONE relocations by ignoring them.Doug Rabson1999-07-121-1/+4
| | | | Notes: svn path=/head/; revision=48771
* Add a MAINTAINER line naming myself. We control the vertical. WeJohn Polstra1999-07-091-1/+2
| | | | | | | control the horizontal. Notes: svn path=/head/; revision=48709
* Fix bug: if a dlopen() failed (e.g., because of undefined symbols),John Polstra1999-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> Notes: svn path=/head/; revision=48708
* Shake hands with GDB a little bit earlier so that it is possible toJohn Polstra1999-07-031-3/+3
| | | | | | | | | debug the init functions. Submitted by: dfr Notes: svn path=/head/; revision=48543
* Update the SYNOPSIS to reflect that the -l option can be specifiedMike Pritchard1999-06-281-2/+3
| | | | | | | | | more than once. Pointed-out-by: sheldonh Notes: svn path=/head/; revision=48313
* Fix a reference counting problem when using dlopen(NULL, ...).John Polstra1999-06-251-3/+4
| | | | | | | PR: bin/12129 Notes: svn path=/head/; revision=48208
* Fix a serious performance bug for large programs on the Alpha,John Polstra1999-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> Notes: svn path=/head/; revision=48205
* Identify illegal switches, don't print them as '?' in the error..Peter Wemm1999-05-181-2/+2
| | | | Notes: svn path=/head/; revision=47291
* Fix ypxfr so that it can be run from cron.Bill Paul1999-05-101-4/+4
| | | | | | | Patch submitted by: Dan Nelson <dnelson@emsphone.com> Notes: svn path=/head/; revision=46929
* Add missing -A option to SYNOPSIS.Guy Helmer1999-05-041-1/+2
| | | | | | | PR: docs/10771 Notes: svn path=/head/; revision=46439
* More egcs warning fixes:Warner Losh1999-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 Notes: svn path=/head/; revision=46078
* Back out my change from 6 April PDT that added a new dlversion()John Polstra1999-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. Notes: svn path=/head/; revision=45929
* After relocating the main program, but before calling any of theJohn Polstra1999-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(). Notes: svn path=/head/; revision=45890
* The ELF specification says that the RPATH in the executable orJohn Polstra1999-04-091-4/+4
| | | | | | | | shared object takes precedence over LD_LIBRARY_PATH. Make the dynamic linker do it that way. Notes: svn path=/head/; revision=45510
* Eliminate all machine-dependent code from the main source body andJohn Polstra1999-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. Notes: svn path=/head/; revision=45501
* Determine the host name using an array size ofBrian Somers1999-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. Notes: svn path=/head/; revision=45492
* Really fix -u....Brian Somers1999-04-071-2/+6
| | | | Notes: svn path=/head/; revision=45423
* Ensure that things returned by gethostname() andBrian Somers1999-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 Notes: svn path=/head/; revision=45422
* Fix the size of rhost, don't forget to NUL terminateBrian Somers1999-04-071-2/+3
| | | | | | | | it and use brackets for sizeof. Requested by: bde Notes: svn path=/head/; revision=45418
* Fix a couple of typos in comments.John Polstra1999-04-071-3/+3
| | | | Notes: svn path=/head/; revision=45399
* Add a new function dlversion() which returns the version number ofJohn Polstra1999-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. Notes: svn path=/head/; revision=45398
* Link with libutilBrian Somers1999-04-062-4/+6
| | | | Notes: svn path=/head/; revision=45396
* Use realhostname() rather than various combinations ofBrian Somers1999-04-069-170/+51
| | | | | | | | | gethostbyaddr() & gethostbyname(). Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length. Notes: svn path=/head/; revision=45393
* After receiving a connection and doing a reverseBrian Somers1999-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 Notes: svn path=/head/; revision=45353
* Resolve undefined weak references to a value of 0. This solves theJohn Polstra1999-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. Notes: svn path=/head/; revision=45320
* If somebody does an execv("foo", NULL) (which theoretically is an error),Peter Wemm1999-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 Notes: svn path=/head/; revision=45292
* Add an 'al' (autologin username) capability to getty/gettytab. This is aPeter Wemm1999-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> Notes: svn path=/head/; revision=45291
* Ignore empty usernames, and repeat the login: prompt in this case.Joerg Wunsch1999-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'. Notes: svn path=/head/; revision=45146
* - Commit the correct dladdr() implementation.Nate Williams1999-03-241-7/+14
| | | | | | | Reviewed by: jdp@FreeBSD.org <This is the version he reviewed!> Notes: svn path=/head/; revision=45018
* - Added dladdr(3) support.Nate Williams1999-03-241-1/+47
| | | | | | | Reviewed by: jdp@FreeBSD.org Notes: svn path=/head/; revision=45015
* Set the CPU resource limit back to infinity before exec()ing PP.Brian Somers1999-03-091-1/+4
| | | | | | | PR: 10399 Notes: svn path=/head/; revision=44615
* Clean up some .Os macro uses: quotes are not needed, multiple argumentsBill Fenner1999-02-152-4/+4
| | | | | | | | don't really work if the first one isn't "FreeBSD", and "FreeBSD-Experimental" isn't an OS name. Notes: svn path=/head/; revision=44060
* - Set the system immutable flag when installing ld.so to avoid peopleNate Williams1999-02-151-2/+3
| | | | | | | | | accidentally clobbering it. Submitted by: numberous people on -current Notes: svn path=/head/; revision=44050
* Oops, I missed a few more /etc/nologin references yesterday. It appearsSatoshi Asami1999-01-123-8/+8
| | | | | | | | | my check of the tree was incomplete. Sorry guys. Reported by: Ben Smithurst <ben@scientia.demon.co.uk> Notes: svn path=/head/; revision=42587
* As previously threatened, clean up the rshd -a option and make it defaultPeter Wemm1998-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). Notes: svn path=/head/; revision=41860
* Old stuff laying around: Don't use a function called getstr(), that hasPeter Wemm1998-12-161-6/+6
| | | | | | | | nasty consequences when the system curses is ncurses as this conflicts with a ncurses funciton and causes recursion. Notes: svn path=/head/; revision=41857
* Block for buffer overflow.Eivind Eklund1998-12-131-1/+3
| | | | Notes: svn path=/head/; revision=41734
* PR: bin/9031Matthew Dillon1998-12-121-2/+2
| | | | | | | Changed unbounded strcpy() to snprintf() to fix buffer overrun exploit Notes: svn path=/head/; revision=41699
* Fixed long line in previous commit.Bruce Evans1998-12-031-2/+3
| | | | Notes: svn path=/head/; revision=41480