summaryrefslogtreecommitdiffstats
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* give out a little more information in case of a missing dependencyeik2004-05-281-1/+6
| | | | | | | | PR: 56549 Submitted by: edwin Reviewed by: joerg, ru Approved by: joerg MFC after: 2 weeks
* - Close fd if fdopen(fd) fails.mdodd2004-05-251-1/+2
| | | | - Format return () to resemble the one 5 lines up.
* Add two new flags: -w, which allows new files to be created,mdodd2004-05-242-5/+32
| | | | | | and -U, which allows the umask to be set. Obtained from: Patton Electronics, Co.
* Include <stdlib.h> for exit() and abort() prototypes.stefanf2004-05-241-0/+1
| | | | Approved by: das (mentor)
* Include <netinet/in.h> for ntoh*() and hton*() prototypes.stefanf2004-05-242-0/+2
| | | | Approved by: das (mentor)
* Support basename and path based constrained matches.mdodd2004-05-241-1/+29
| | | | | | | | | | | | | | | | | | eg: [foo] ... matches any executable 'foo' [/usr/bin/foo/] ... matches any executable under the directory /usr/bin/foo/ Exact matches continue to function as before. PR: bin/66769 Submitted-by: Dan Nelson
* Markup fixes.ru2004-05-161-8/+11
|
* Markup nit.ru2004-05-161-1/+1
|
* There's no such beast like AF_INET4, even when powered by whiskey.ru2004-05-161-1/+1
|
* Bump document date for the latest change.ru2004-05-161-3/+3
| | | | Minor markup tweaks.
* Work around a problem somewhere with binutils (?) on arm, hopefully withoutcognet2004-05-152-0/+5
| | | | breaking any other arch this time.
* Fix breakage caused by alphabetically sorting SRCS: rtld_start.S must come ↵se2004-05-141-1/+2
| | | | | | first! The previous version made all shared binaries dump core.
* Import arm bits for rtld-elf.cognet2004-05-146-2/+684
| | | | Obtained from: NetBSD
* Handle variable argument lists correctly in reply() and lreply().tjr2004-05-131-2/+8
| | | | | | In particular, do not pass the same va_list to both vprintf() and vsyslog() without first reinitializing it. This fixes ftpd -d on amd64.
* Cast the terminating NULL to char * in the execl() call.mux2004-04-041-1/+1
| | | | Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
* If we change obj_rtld.path after initialising __progname, make sure wedfr2004-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.
* Make fingerd(8) WARNS2 clean.pjd2004-03-292-1/+2
|
* More stack alignment fixes. Arrange so we call _rtld() in ld-elf.so.1peter2004-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.
* Add initial support for compiling a special 32 bit version ofpeter2004-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.
* Fixed a misspelling of 0 as NULL.bde2004-03-141-1/+1
|
* Link pf to the build and install:mlaier2004-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)
* Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)markm2004-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
* Add skeleton build dirs for pf userland:mlaier2004-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)
* Do not depend on existence of _end symbol in obj_from_addr, usekan2004-02-251-8/+1
| | | | | | obj->mapbase and obj->mapsize instead. Prompted by: OpenOffice debugging session at last BSDCon.
* Don't pass a pointer to a 'long' to a function that expects an 'int *'.das2004-02-161-2/+2
| | | | | Submitted by: Roop Nanuwa <roop@hqst.com> PR: 62615
* Add the '-h hostname' to usage(), too.roam2004-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
* Document the '-h hostname' option, which seems to have been presentroam2004-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
* NULL looks better than (char *)0 unless we're passingyar2004-02-071-1/+1
| | | | an unprototyped argument to a function.
* Deny attempts to rename a file from guest users if the policyyar2004-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.
* perror_reply() should not be used where errno isn't meaningful.yar2004-02-071-1/+5
|
* Work around a bug in some clients by never returning raw directoryyar2004-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
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-051-2/+2
|
* Removed unnecessary dependencies on librpcsvc.ru2004-02-041-2/+2
| | | | Prodded by: des
* Put libdevstat before libkvm, because the former depends on the latter.ru2004-02-041-2/+2
|
* - Added the NOPAM knob, for consistency with ${.CURDIR}/../ftpd.ru2004-02-041-3/+9
| | | | | | - Unbreak -DNOPAM -DNOSHARED build by putting -lmd after -lopie. (Static build with PAM remains broken.)
* Fix "warning: value computed is not used".fjoe2004-02-031-1/+1
| | | | Found by: gcc 2.95.4 [FreeBSD]
* Removed duplicate -lutil.ru2004-02-021-5/+2
|
* Reorder dependencies to fix static NOPAM build.ru2004-02-021-4/+4
| | | | Submitted by: lorder(1)
* add missing setusershell() calls.charnier2004-01-181-0/+1
| | | | | PR: bin/2442 Reviewed by: Friedemann Becker <zxmxy33@mail.uni-tuebingen.de>
* - Build things in pure dictionary order (see sort(1)).ru2004-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
* man ftpd says that "by default, anonymous users cannot modify existing files."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>
* Initialise some uninitialised variables.dfr2003-12-311-0/+2
| | | | Thanks to: valgrind
* Document what the PAM believers failed to do (and should have),obrien2003-12-171-0/+9
| | | | which is how to rsh as root into a machine.
* Fix dynamic linking a bit more.. enough that mozilla-firebird works if youpeter2003-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.
* Revert last change. ../rtld.c uses CACHE_LINE_SIZE too.peter2003-12-111-0/+2
| | | | | | Change it to 64 while here. Reported by: ps
* Only define CACHE_LINE_SIZE in one place..peter2003-12-111-2/+0
|
* CACHE_LINE_SIZE is 64 on athlon and amd64 chips, not 32. This shouldpeter2003-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.
* Fix a bug which causes wrong filename being written into the syslogsobomax2003-11-201-1/+10
| | | | | | | in the case when client sends request with RFC2347 options. Approved by: re MFC After: 2 weeks
* Replace all uses of the old netgraph constants NG_*LEN by the newharti2003-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.
* If a file to send in ASCII mode already has CRLF as end-of-line,yar2003-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
OpenPOWER on IntegriCloud