aboutsummaryrefslogtreecommitdiff
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Block SIGURG while reading from the control channel.Yaroslav Tykhiy2003-07-091-0/+6
| | | | | | | | | | | | | | | | | | Rationale: SIGURG is configured by ftpd to interrupt system calls, which is useful during data transfers. However, SIGURG could interrupt I/O on the control channel as well, which was mistaken for the end of the session. A practical example could be aborting the download of a tiny file, when the abort sequence reached ftpd after ftpd had passed the file data to the system and returned to its command loop. Reported by: ceri MFC after: 1 week Notes: svn path=/head/; revision=117352
* Improve error handling in getline():Yaroslav Tykhiy2003-07-091-4/+7
| | | | | | | | | | | | - always check the return value from getc(3) for EOF; - if the attempt to read the TELNET command byte has returned EOF, exit from the loop instead of using the EOF value as a normal character. MFC after: 1 week Notes: svn path=/head/; revision=117351
* Make a malloced copy of "chrootdir" even if it points to an absoluteYaroslav Tykhiy2003-07-091-3/+5
| | | | | | | | | | | pathname inside "residue" so "chrootdir" can be simply freed later. PR: bin/53435 Submitted by: Yutaka Ishihara <yutaka at fandc.co.jp> MFC after: 1 week Notes: svn path=/head/; revision=117349
* Remove MAINTAINER= lines from individual Makefiles in favor of theGregory Neil Shapiro2003-07-072-4/+0
| | | | | | | MAINTAINER file (which already had entries for sendmail). Notes: svn path=/head/; revision=117299
* Avoid using the global offset table to get the address of _DYNAMIC inJake Burkholder2003-07-042-1/+18
| | | | | | | | | | | | rtld. When _DYNAMIC is referenced normally from C the global offset table is used implicitly, but newer versions of binutils don't initialize it statically in the binary, so this doesn't work until rtld is relocated, which _DYNAMIC is needed for... So, as on other systems with the same problem, we disassemble a call instruction to _DYNAMIC in order to get its address. Notes: svn path=/head/; revision=117211
* Don't declare unneeded extern variables,Yaroslav Tykhiy2003-06-211-2/+0
| | | | | | | leave alone specifying a wrong type for one of them. Notes: svn path=/head/; revision=116655
* Fix warnings on 64 bit platforms.Matthew N. Dodd2003-06-191-9/+9
| | | | | | | Noticed by: jake Notes: svn path=/head/; revision=116582
* Add function prototypes.Matthew N. Dodd2003-06-191-0/+2
| | | | Notes: svn path=/head/; revision=116568
* LD_DUMP_REL_PRE and LD_DUMP_REL_POST don't output to stderr; don'tMatthew N. Dodd2003-06-191-2/+2
| | | | | | | claim that they do. Notes: svn path=/head/; revision=116566
* Provide a mechanism for dumping relocation information.Matthew N. Dodd2003-06-194-0/+116
| | | | | | | | | | Setting the LD_DUMP_REL_PRE or LD_DUMP_REL_POST environment variables cause rtld-elf to output a table of all relocations. This is useful for debugging. Notes: svn path=/head/; revision=116563
* Move MD function prototypes together.Matthew N. Dodd2003-06-191-4/+8
| | | | Notes: svn path=/head/; revision=116558
* Fix warnings; no parameters in function prototypes.Matthew N. Dodd2003-06-192-3/+3
| | | | Notes: svn path=/head/; revision=116557
* Avoid a NULL pointer dereference.Matthew N. Dodd2003-06-181-1/+2
| | | | Notes: svn path=/head/; revision=116539
* - Use the initial terminal mode instead of the current modeYaroslav Tykhiy2003-06-182-73/+64
| | | | | | | | | | | | | as the source of defaults for terminal device parameters. - Do duplucate code reduction and simplification enabled by the above. Reviewed by: green MFC after: 1 month Notes: svn path=/head/; revision=116533
* Include libmap.h for prototypes.Matthew N. Dodd2003-06-181-0/+1
| | | | Notes: svn path=/head/; revision=116513
* - Add support for DT_FLAGS.Matthew N. Dodd2003-06-183-1/+21
| | | | | | | - Define various things from the most recent ELF spec. Notes: svn path=/head/; revision=116511
* More correctly spell "-static" as "NOSHARED?=YES"Doug Barton2003-06-171-1/+3
| | | | Notes: svn path=/head/; revision=116506
* Improve the manpage language a bit.Yaroslav Tykhiy2003-06-171-1/+1
| | | | | | | | | | | A PPP login program is started _automatically_ (i.e., without human intervention) even with the "pl" capability unset, as soon as a PPP frame is detected. But with "pl" set, a PPP login program is started independently of the result of PPP detection (which is rendered unnecessary then,) i.e. _unconditionally_. Notes: svn path=/head/; revision=116482
* Link named-xfer -static. This is the only binary that needs to beDoug Barton2003-06-171-1/+1
| | | | | | | | | statically compiled for named to work chroot'ed, and we'd like to be able to do that from /etc/rc.d without additional user intervention. Notes: svn path=/head/; revision=116470
* If ftpd is run with an -h option (hide host-specific info,)Yaroslav Tykhiy2003-06-161-8/+8
| | | | | | | | | | | | | | | | | | don't reveal the info in reply to the SYST command. Get rid of using the "unix" macro at the same time. It was a rather poor way to check if the system was Unix since there were quite a few Unix clones out there whose cc didn't define "unix" (e.g., NetBSD.) It was also sensitive to the C standard used, which caused unnecessary trouble: With -std=c99, it should have been "__unix__", and so on. PR: bin/50690 Submitted by: Alex Semenyaka <alexs _at_ snark.ratmir.ru> MFC after: 1 week Notes: svn path=/head/; revision=116439
* fix a couple typos in the commentsJohn-Mark Gurney2003-06-151-2/+2
| | | | | | | From NetBSD's bootpd (in src/usr.sbin/bootp) Notes: svn path=/head/; revision=116371
* fix bootpd to use fd_set. For some reason on Sparc, using int withJohn-Mark Gurney2003-06-151-4/+6
| | | | | | | select is broken. Notes: svn path=/head/; revision=116370
* Remove MAINTAINER lines.David E. O'Brien2003-06-141-2/+0
| | | | Notes: svn path=/head/; revision=116346
* In the last clean-up of this code, the fact that the default tty modeBrian Feldman2003-06-141-6/+20
| | | | | | | | | | | information could only be gleaned from the the tty descriptor itself was neglected, so never did the tty's default settings get copied from the kernel. Specifically, this caused all manner of ctrl-keys to not work. Fix this by calling dogettytab() in all the proper places, and retrieving the terminfo temporarily in dogettytab(). Notes: svn path=/head/; revision=116329
* Read gettytab(5) soon enough to fill in all necessary values.Yaroslav Tykhiy2003-06-102-16/+40
| | | | | | | | | | | | Re-read gettytab(5) only if needed. This fixes bugs introduced as long ago as in getty/main.c rev.1.15. PR: bin/18181 MFC after: 1 month Notes: svn path=/head/; revision=116164
* Spot one more place where boolean variables were incrementedYaroslav Tykhiy2003-06-101-1/+1
| | | | | | | instead of just being assigned a truth value. Notes: svn path=/head/; revision=116155
* Coding style fix: Use "foo = 1" instead of "foo++" to assignYaroslav Tykhiy2003-06-101-2/+2
| | | | | | | | the truth value to a boolean variable, especially when inside a loop. The variable can overflow otherwise, at least in theory. Notes: svn path=/head/; revision=116154
* Break sentences.Yaroslav Tykhiy2003-06-101-4/+6
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=116153
* General mdoc(7) markup fixes:Yaroslav Tykhiy2003-06-101-61/+67
| | | | | | | | | | | | | | - Use .Va, not .Em, to mark up variable-like identifiers (capability and database entry names.) - Stop abusing .Tn (trademark) to emphasize general phrases. - Spot unmarked capability references. - Add a missing line break. Discussed with: ru MFC after: 1 week Notes: svn path=/head/; revision=116152
* Improve the language and markup of the description of the pp and plYaroslav Tykhiy2003-06-101-7/+18
| | | | | | | | | | | | | | | capabilities: - Mark up capability identifiers. - Don't squeeze much text into the capability table given the options will be described below in detail. - Keep the capability table sorted. - Use a consistent term for a PPP login program. MFC after: 1 week Notes: svn path=/head/; revision=116151
* Add section number to .XrPhilippe Charnier2003-06-082-2/+2
| | | | Notes: svn path=/head/; revision=116034
* The .Xr utilityPhilippe Charnier2003-06-082-5/+7
| | | | Notes: svn path=/head/; revision=116033
* Don't fail if we encounter a relocation of type "none". Just ignoreMarcel Moolenaar2003-06-071-0/+3
| | | | | | | | | it. It's a no-op relocation. Trigger case: ports/x11-toolkits/pango Notes: svn path=/head/; revision=115940
* Fix some minor bugs, namely:Yaroslav Tykhiy2003-06-061-3/+14
| | | | | | | | | | | | | | | | | | | | | | | - Initialize "rval", which would be used uninitialized if al or pl options were set. - Don't pass an empty string to login(1) as a user name (this could be triggered by entering a name and then killing it with backspace or ^U.) - Don't loop endlessly if the al option specifies a bogus (i.e., not alphanumeric) auto-login name. - Don't pass a bogus user name to login(1) if a good name were entered and then killed with ^U. - Exit with status 0, not 1, on receiving an EOF character, since it's not a error condition. MFC after: 1 week Notes: svn path=/head/; revision=115900
* Drop MAINTAINER Bit. Not needed any more.Mark Murray2003-06-041-2/+0
| | | | Notes: svn path=/head/; revision=115836
* Set CSTD to gnu99. We can only use on of the gnu?9 C languages.David E. O'Brien2003-06-041-0/+1
| | | | | | | We can't use c89 due to use of 'inline', and c99 produces bad code. Notes: svn path=/head/; revision=115814
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-06-021-5/+5
| | | | Notes: svn path=/head/; revision=115697
* Best we can do with this is c89.David E. O'Brien2003-06-021-0/+1
| | | | Notes: svn path=/head/; revision=115669
* Include stdlib.h to get exit()'s prototype.David E. O'Brien2003-06-021-0/+1
| | | | Notes: svn path=/head/; revision=115668
* Add the variable's type to the declaration.David E. O'Brien2003-06-021-1/+1
| | | | Notes: svn path=/head/; revision=115667
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-06-011-19/+18
| | | | Notes: svn path=/head/; revision=115634
* - use issetugid()Matthew N. Dodd2003-05-311-3/+2
| | | | | | | | | - be paranoid about honoring LD_LIBMAP_DISABLE. Suggested by: rwatson Notes: svn path=/head/; revision=115448
* Simplify map_object() by breaking out the ELF header validation bitsMatthew N. Dodd2003-05-311-58/+67
| | | | | | | into a separate function. Notes: svn path=/head/; revision=115446
* Provide function entry debugging messages.Matthew N. Dodd2003-05-311-1/+16
| | | | Notes: svn path=/head/; revision=115445
* Use the environment variable LD_LIBMAP_DISABLE to disableMatthew N. Dodd2003-05-312-3/+11
| | | | | | | libmap.conf(5) functionality. Notes: svn path=/head/; revision=115444
* Don't post-increment pointers inside a loop conditional.Matthew N. Dodd2003-05-301-11/+11
| | | | | | | | | | | | | | While I'm here: - Let lm_add() call strdup() on its own behalf. - Use a temporary pointer when parsing constraints; only set the constraint pointer on a totally successful match. PR: bin/52783 Submitted by: David P. Reese Jr. <daver@gomerbud.com> Approved by: re (rwatson) Notes: svn path=/head/; revision=115400
* Allow threading libraries to register their own lockingAlexander Kabaev2003-05-2920-480/+558
| | | | | | | | | | | | | implementation in case default one provided by rtld is not suitable. Consolidate various identical MD lock implementation into a single file using appropriate machine/atomic.h. Approved by: re (scottl) Notes: svn path=/head/; revision=115396
* Do not exclude amd64 from rtld-elf builds.Peter Wemm2003-05-241-1/+1
| | | | | | | Approved by: re (safe amd64 support commits) Notes: svn path=/head/; revision=115281
* Initial pass at supporting shared libraries on amd64. There are stillPeter Wemm2003-05-242-73/+101
| | | | | | | | | | a few missing relocation types in amd64/reloc.c, but I have not found any of them in use yet. :-) Approved by: re (amd64/* blanket) Notes: svn path=/head/; revision=115280
* Retire the useless NOSECURE knob.Dag-Erling Smørgrav2003-05-191-2/+1
| | | | | | | Approved by: re (scottl) Notes: svn path=/head/; revision=115157