aboutsummaryrefslogtreecommitdiff
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* If we change obj_rtld.path after initialising __progname, make sure weDoug Rabson2004-03-291-0/+1
| | | | | | | | change __progname to point at the new storage otherwise it ends up pointing at freed memory which leads to confusing garbled error messages. Notes: svn path=/head/; revision=127579
* Make fingerd(8) WARNS2 clean.Pawel Jakub Dawidek2004-03-292-1/+2
| | | | Notes: svn path=/head/; revision=127560
* More stack alignment fixes. Arrange so we call _rtld() in ld-elf.so.1Peter Wemm2004-03-211-8/+9
| | | | | | | | | | | | with the correct alignment. This is important because this calls to library static constructors are made from here. The bug in the old crt*.s files hid this because in this case, two wrongs do indeed make a right. Also, call _rtld_bind() with the correct alignment, because it calls back into the pthread library locking functions. If things happen just the wrong way, we get a SIG10 due to the broken stack alignment. Notes: svn path=/head/; revision=127254
* Add initial support for compiling a special 32 bit version ofPeter Wemm2004-03-216-19/+78
| | | | | | | | | | ld-elf.so.1 on 64 bit systems. Most of this involves using alternate paths, environment variables and diagnostic messages. The build glue is seperate. Notes: svn path=/head/; revision=127250
* Fixed a misspelling of 0 as NULL.Bruce Evans2004-03-141-1/+1
| | | | Notes: svn path=/head/; revision=126952
* Link pf to the build and install:Max Laier2004-03-081-0/+5
| | | | | | | | | | | | | | | | | | | This adds the former ports registered groups: proxy and authpf as well as the proxy user. Make sure to run mergemaster -p in oder to complete make installworld without errors. This also provides the passive OS fingerprints from OpenBSD (pf.os) and an example pf.conf. For those who want to go without pf; it provides a NO_PF knob to make.conf. __FreeBSD_version will be bumped soon to reflect this and to be able to change ports accordingly. Approved by: bms(mentor) Notes: svn path=/head/; revision=126756
* Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)Mark Murray2004-03-051-4/+4
| | | | | | | | | | | | | | | | | | that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C). There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK. Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other". Tested on: i386 sparc64 Notes: svn path=/head/; revision=126643
* Add skeleton build dirs for pf userland:Max Laier2004-02-281-0/+12
| | | | | | | | | | | | | | | | | | | | | libexec/ftp-proxy - ftp proxy for pf sbin/pfctl - equivalent to sbin/ipf sbin/pflogd - deamon logging packets via if_pflog in pcap format usr.sbin/authpf - authentification shell to modify pf rulesets Bring along some altq headers used to satisfy pfctl/authpf compile. This helps to keep the diff down and will make it easy to have a altq-patchset use the full powers of pf. Also make sure that the pf headers are installed. This does not link anything to the build. There will be a NO_PF switch for make.conf once pf userland is linked. Approved by: bms(mentor) Notes: svn path=/head/; revision=126385
* Do not depend on existence of _end symbol in obj_from_addr, useAlexander Kabaev2004-02-251-8/+1
| | | | | | | | | obj->mapbase and obj->mapsize instead. Prompted by: OpenOffice debugging session at last BSDCon. Notes: svn path=/head/; revision=126236
* Don't pass a pointer to a 'long' to a function that expects an 'int *'.David Schultz2004-02-161-2/+2
| | | | | | | | Submitted by: Roop Nanuwa <roop@hqst.com> PR: 62615 Notes: svn path=/head/; revision=125868
* Add the '-h hostname' to usage(), too.Peter Pentchev2004-02-131-1/+3
| | | | | | | | | | | While I'm here, sync the usage() synopsis with the manual page synopsis: make the [-i | -s] explicit and sort the options alphabetically. Reminded by: ru MFC after: 3 days Notes: svn path=/head/; revision=125769
* Document the '-h hostname' option, which seems to have been presentPeter Pentchev2004-02-101-7/+14
| | | | | | | | | | | | ever since rev. 1.1 of bootpd.c. While I'm here, rearrange the synopsis a bit: sort the options and clarify that -i and -s are mutually exclusive. Reported by: Atanas Buchvarov <nasko@nove.bg> MFC after: 3 days Notes: svn path=/head/; revision=125654
* NULL looks better than (char *)0 unless we're passingYaroslav Tykhiy2004-02-071-1/+1
| | | | | | | an unprototyped argument to a function. Notes: svn path=/head/; revision=125570
* Deny attempts to rename a file from guest users if the policyYaroslav Tykhiy2004-02-071-0/+4
| | | | | | | | | | | | says they may not modify existing files through FTP. Renaming a file is effectively a way to modify it. For instance, if a malicious party is unable to delete or overwrite a sensitive file, they can nevertheless rename it to a hidden name and then upload a troyan horse under the guise of the old file name. Notes: svn path=/head/; revision=125569
* perror_reply() should not be used where errno isn't meaningful.Yaroslav Tykhiy2004-02-071-1/+5
| | | | Notes: svn path=/head/; revision=125568
* Work around a bug in some clients by never returning raw directoryYaroslav Tykhiy2004-02-071-1/+8
| | | | | | | | | | | | contents in reply to a RETR command. Such clients consider RETR as a way to tell a file from a directory. Mozilla is an example. PR: bin/62232 Submitted by: Bob Finch <bob+freebsd <at> nas <dot> com> MFC after: 1 week Notes: svn path=/head/; revision=125565
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).Ruslan Ermilov2004-02-051-2/+2
| | | | Notes: svn path=/head/; revision=125503
* Removed unnecessary dependencies on librpcsvc.Ruslan Ermilov2004-02-041-2/+2
| | | | | | | Prodded by: des Notes: svn path=/head/; revision=125433
* Put libdevstat before libkvm, because the former depends on the latter.Ruslan Ermilov2004-02-041-2/+2
| | | | Notes: svn path=/head/; revision=125431
* - Added the NOPAM knob, for consistency with ${.CURDIR}/../ftpd.Ruslan Ermilov2004-02-041-3/+9
| | | | | | | | | - Unbreak -DNOPAM -DNOSHARED build by putting -lmd after -lopie. (Static build with PAM remains broken.) Notes: svn path=/head/; revision=125428
* Fix "warning: value computed is not used".Max Khon2004-02-031-1/+1
| | | | | | | Found by: gcc 2.95.4 [FreeBSD] Notes: svn path=/head/; revision=125397
* Removed duplicate -lutil.Ruslan Ermilov2004-02-021-5/+2
| | | | Notes: svn path=/head/; revision=125337
* Reorder dependencies to fix static NOPAM build.Ruslan Ermilov2004-02-021-4/+4
| | | | | | | Submitted by: lorder(1) Notes: svn path=/head/; revision=125336
* add missing setusershell() calls.Philippe Charnier2004-01-181-0/+1
| | | | | | | | PR: bin/2442 Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de> Notes: svn path=/head/; revision=124687
* - Build things in pure dictionary order (see sort(1)).Ruslan Ermilov2004-01-161-6/+12
| | | | | | | | | | | | | - Unify the conditional assignments section so that architectural exclusions come first, then options and !options, sorted by the option name, also in directory order, then architecture specific sections, sorted by the architecture name, with i386 being a traditional exception. Prodded by: bde Notes: svn path=/head/; revision=124587
* man ftpd says that "by default, anonymous users cannot modify existing files."Eric Anholt2004-01-071-1/+1
| | | | | | | | | | | However, the code did allow deletion of files. Make deleting require the -m flag, too. PR: bin/60809 Submitted by: Alexander Melkov <melkov@comptek.ru> Notes: svn path=/head/; revision=124229
* Initialise some uninitialised variables.Doug Rabson2003-12-311-0/+2
| | | | | | | Thanks to: valgrind Notes: svn path=/head/; revision=124020
* Document what the PAM believers failed to do (and should have),David E. O'Brien2003-12-171-0/+9
| | | | | | | which is how to rsh as root into a machine. Notes: svn path=/head/; revision=123616
* Fix dynamic linking a bit more.. enough that mozilla-firebird works if youPeter Wemm2003-12-121-3/+3
| | | | | | | | | dig up the patches for amd64 support for it. Note to self: do not put a 64 bit value in a 32 bit space. Notes: svn path=/head/; revision=123481
* Revert last change. ../rtld.c uses CACHE_LINE_SIZE too.Peter Wemm2003-12-111-0/+2
| | | | | | | | | Change it to 64 while here. Reported by: ps Notes: svn path=/head/; revision=123458
* Only define CACHE_LINE_SIZE in one place..Peter Wemm2003-12-111-2/+0
| | | | Notes: svn path=/head/; revision=123437
* CACHE_LINE_SIZE is 64 on athlon and amd64 chips, not 32. This shouldPeter Wemm2003-12-111-1/+1
| | | | | | | | probably be 128 since that is what the hardware prefetch fill size is on both the p3, p4 and athlon* cpus. Notes: svn path=/head/; revision=123436
* Fix a bug which causes wrong filename being written into the syslogMaxim Sobolev2003-11-201-1/+10
| | | | | | | | | | in the case when client sends request with RFC2347 options. Approved by: re MFC After: 2 weeks Notes: svn path=/head/; revision=122916
* Replace all uses of the old netgraph constants NG_*LEN by the newHartmut Brandt2003-11-151-1/+1
| | | | | | | | | constants NG_*SIZ that include the trailing NUL byte. This change is mostly mechanical except for the replacement of a couple of snprintf() and sprintf() calls with strlcpy. Notes: svn path=/head/; revision=122758
* If a file to send in ASCII mode already has CRLF as end-of-line,Yaroslav Tykhiy2003-11-151-2/+4
| | | | | | | | | | | don't add excessive CR on the wire. PR: bin/59285 Submitted by: Andrey Beresovsky <and at rsu.ru> MFC after: 1 week Notes: svn path=/head/; revision=122751
* Sync comment with code's reality.Anton Berezin2003-11-141-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=122665
* Tidy up some xdrproc_t related warnings.Peter Wemm2003-10-262-5/+7
| | | | Notes: svn path=/head/; revision=121538
* Pacify gcc warning with a Douglas Adams reference.Peter Wemm2003-10-261-0/+2
| | | | Notes: svn path=/head/; revision=121537
* Make the warning message stand out more.Tim J. Robbins2003-10-111-0/+2
| | | | Notes: svn path=/head/; revision=120996
* Warn users that makekey may disappear in a future release now that theTim J. Robbins2003-10-091-1/+6
| | | | | | | last in-tree consumer has gone. Notes: svn path=/head/; revision=120936
* Use the new style struct sockaddr instead of osockaddr in system callsTim J. Robbins2003-09-281-4/+6
| | | | | | | | | so that talkd works without COMPAT_43. Obtained from: NetBSD (christos), Rumi Szabolcs Notes: svn path=/head/; revision=120548
* Don't depend on IPv4-mapped IPv6 address to bind to both IPv4Hajimu UMEMOTO2003-09-142-75/+115
| | | | | | | | | | | and IPv6. Wrote at: Hakone. Powered by: Warner Losh's scotch whisky. Requested by: nork Notes: svn path=/head/; revision=120059
* Retire the WITH_LIBMAP compile knob; libmap is now a standard feature.Matthew N. Dodd2003-09-132-18/+1
| | | | Notes: svn path=/head/; revision=120039
* Change libmap.c:lm_init() to return a status value; 0 for successMatthew N. Dodd2003-09-133-5/+5
| | | | | | | | | | | (libmap available) and 1 for failure. Assign this return to the global 'libmap_disable' variable in rtld.c. This totally prevents any libmap functions from being called after lm_init() if no config file is present. Notes: svn path=/head/; revision=120038
* Deal with the LOGIN_NAME_MAX issue in the NetBSD->FreeBSDDavid E. O'Brien2003-09-111-0/+7
| | | | | | | translation^H^H^Hhack layer. Notes: svn path=/head/; revision=119975
* Add a dependancy on 'nbsd2fbsd.h'David E. O'Brien2003-09-101-0/+2
| | | | Notes: svn path=/head/; revision=119961
* mdoc(7): Use the new feature of the .In macro.Ruslan Ermilov2003-09-081-1/+1
| | | | Notes: svn path=/head/; revision=119893
* Eliminate last three uses of varargs.h in the tree. These three filesAlexander Kabaev2003-09-012-2/+0
| | | | | | | | were including varargs.h file but did not use any of its macros, so they escaped the clean-up before. Notes: svn path=/head/; revision=119632
* Add a note that the -u option can be overridden by settings in login.conf(5).Ceri Davies2003-08-311-0/+2
| | | | | | | | PR: docs/56017 Submitted by: Josef El-Rayes <j.el-rayes@daemon.li> Notes: svn path=/head/; revision=119602
* Remove a useless '/'.David E. O'Brien2003-08-241-1/+1
| | | | Notes: svn path=/head/; revision=119416