summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
Commit message (Collapse)AuthorAgeFilesLines
...
* Doc fix: remove references to ~ftp/bin/ls as we have FTPD_INTERNAL_LSpeter2000-02-171-8/+0
| | | | | | unconditionally active already. Noticed by: obrien
* Add more dual stack consideration.shin2000-02-101-19/+27
| | | | | | | -ftpd need to know each of AF_INET and AF_INET6 addr for hosts specified in /etc/ftphosts. Approved by: jkh
* Revert part of the last commit, remove {g|s}etflags from the libcjoe2000-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | interface, and statically link them to the programs using them. These functions, upon reflection and discussion, are too generically named for a library interface with such specific functionality. Also the api that they use, whilst ok for private use, isn't good enough for a libc function. Additionally there were complications with the build/install-world process. It depends heavily upon xinstall, which got broken by the change in api, and caused bootstrap problems and general mayhem. There is work in progress to address future problems that may be caused by changes in install-chain tools, and better names for {g|s}etflags can be derived when some future program requires them. For now the code has been left in src/lib/libc/gen (it started off in src/bin/ls). It's important to provide library functions for manipulating file flag strings if we ever want this interface to be adopted outside of the source tree, but now isn't necessarily the right moment with 4.0-release just around the corner. Approved: jkh
* Remove unnecessary -g for CFLAGS.shin2000-02-031-1/+1
| | | | | | | -g for CFLAGS which was set at debugging time was mistakenly committed, so removed it. Approved by: jkh
* Fix ftpd core dump when hostname is not set.shin2000-02-031-1/+2
| | | | | | | | | When hostname is not set, ftpd core dumps, because there is no NULL check for freeing name resolving information for its own hostname. So the check is added. Approved by: jkh
* another tcp apps IPv6 updates.(should be make world safe)shin2000-01-277-119/+812
| | | | | | | ftp, telnet, ftpd, faithd also telnet related sync with crypto, secure, kerberosIV Obtained from: KAME project
* Moved flags_to_string and string_to_flags into libutil. It's used injoe1999-12-301-1/+1
| | | | many places nowadays.
* sync with netbsd PR 8534, fix undefined C code.alfred1999-10-071-1/+1
| | | | Pointed out by: David A. Holland
* Fix for new Kerberos4. Make a fist cut at PAM-ising while I'm here.markm1999-09-192-27/+145
|
* When a STAT command is sent to ftpd as an out-of-band transmission duringmharo1999-09-121-0/+1
| | | | | | | | a file transfer, the command was mishandled on every other receipt of the command. PR: 13261 Submitted by: Ian Lepore <ian@plutotech.com>
* Add common error lib for the Kerberos case.markm1999-09-061-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-289-9/+9
|
* unifdef -DINTERNAL_LS - it's too useful to be off by default. If anyonepeter1999-08-265-32/+7
| | | | | really dislikes this, we could add a switch to disable it at runtime and check in popen.c.
* Update the SYNOPSIS to reflect that the -l option can be specifiedmpp1999-06-281-2/+3
| | | | | | more than once. Pointed-out-by: sheldonh
* Add missing -A option to SYNOPSIS.ghelmer1999-05-041-1/+2
| | | | PR: docs/10771
* More egcs warning fixes:imp1999-04-251-2/+3
| | | | | | | | | | 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
* Ensure that things returned by gethostname() andbrian1999-04-071-4/+5
| | | | | | | | | | 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
* Use realhostname() rather than various combinations ofbrian1999-04-061-9/+3
| | | | | | gethostbyaddr() & gethostbyname(). Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.
* Oops, I missed a few more /etc/nologin references yesterday. It appearsasami1999-01-121-3/+3
| | | | | | my check of the tree was incomplete. Sorry guys. Reported by: Ben Smithurst <ben@scientia.demon.co.uk>
* 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>
* 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.
* 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
* 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>
* Document the use of lines beginning with a '#' as comment lines.jkoshy1998-07-091-1/+4
| | | | PR: 5676
* signal() returns SIG_ERR on error, not int.jb1998-06-031-4/+4
| | | | time() requires a time_t pointer, not a long.
* Make ftpd(8) honor its default group setting in the config files.steve1998-05-251-7/+16
| | | | | PR: 6682 Submitted by: Max Euston <meuston@jmrodgers.com>
* Back out "always UTC" fix since some people want visually identical 'ls'ache1998-05-181-4/+10
| | | | | | | | output for local users. FTP protocol RFC also says that 'ls' output is not machine-readable. "always UTC" still possible with TZ= in ftpd environment by price of having UTC in log files too. Fix INTERNAL_LS to sense new /etc/localtime after chroot
* Return back initial tzset() must be before first chrootache1998-05-161-1/+3
|
* Return back vfork and use execve with TZ="" environment in vfork caseache1998-05-151-5/+7
|
* Use fork instead of vfork since setenv clobber parent environmentache1998-05-151-4/+2
| | | | Fork already used for INTERNAL_LS in anycase
* Move TZ="" assignment just before exec to not touch other time stuffache1998-05-152-5/+4
|
* Do TZ= as first thing, since FTP protocol is unable to tell zone offset inache1998-05-151-2/+3
| | | | | | | | | any case. It makes no difference for anon account (since chroot already makes it GMT), but if you do mirror with special non-anon login, in old variant your mirror will be wholy retransmitted twice in the year due to time zone changes (/etc/localtime plays bad role here)
* Simplified by using new yacc rules and by not generating y.tab.h.bde1998-05-041-4/+3
|
* Set TCP_NODELAY on the control channel to improve performance a bit.dg1998-04-281-1/+8
|
* Fixed a bug where if MAXUSRARGS amount of args were passed in, the argv[]dg1998-04-271-2/+4
| | | | | array would end up without the NULL pointer termination, causing the glob code to glob whatever garbage happend to follow on the stack.
* PR: 5812danny1998-02-251-1/+5
| | | | | | Pointed-in-the-right-driection-by: Mike Smith and Steve Price Close syslogging before calling ls_main()
* Make ftpd log IP-addresses in addition to hostnames.eivind1998-02-241-2/+3
|
* MFS.obrien1998-02-181-2/+7
|
* Various sprintf -> snprintf fixes.imp1997-12-242-9/+12
| | | | | Minor style fix (strcpy(foo,"") -> *foo = '\0') Obtained from: OpenBSD(?)
* FTP_INTERNAL_LS -> FTPD_INTERNAL_LSsteve1997-12-041-2/+2
| | | | Pointed out by: Jaye Mathisen <mrcpu@cdsnet.net>
* Cosmetics in man page. Exit(-1) -> exit(1).charnier1997-11-216-30/+36
|
* Changes to support full make parallelism (-j<n>) in the worldjkh1997-10-051-3/+4
| | | | | | target. Reviewed by: <many different folks> Submitted by: Nickolay N. Dudorov" <nnd@nnd.itfs.nsk.su>
* Many places in the code NULL is used in integer context, wherephk1997-09-181-2/+2
| | | | | | | | | plain 0 should be used. This happens to work because we #define NULL to 0, but is stylistically wrong and can cause problems for people trying to port bits of code to other environments. PR: 2752 Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
* Hopefully better fix for logwtmp(): rename to a privatetg1997-09-053-7/+8
| | | | version ftpd_logwtmp().
* logwtmp() prototype is in <libutil.h>.tg1997-09-051-2/+1
|
* Make useage of hostname global variable consistent.davidn1997-07-242-7/+8
| | | | | PR: 4135 Based on submitted patch by: blank@fox.uni-trier.de
* Tell the chroot()ed user that "access restrictions apply".danny1997-05-211-1/+6
|
* login_getclass() -> login_getpwclass().davidn1997-05-101-2/+2
|
* Adds anon ftp virtual host capability to ftpd, using /etc/ftphosts fordavidn1997-04-294-17/+271
| | | | definition of a system's virtual hosts.
* YAMF2.2: Allow @group entries in /etc/ftpusers & /etc/ftpchroot to denydavidn1997-04-272-10/+35
| | | | and allow chroot access to entire groups.
OpenPOWER on IntegriCloud