summaryrefslogtreecommitdiff
path: root/libexec/ftpd/ftpd.c
AgeCommit message (Collapse)Author
2001-07-08-WallTheo de Raadt
2001-07-03Use the 'welcome' variable from login.conf instead of hard-codingTodd C. Miller
/etc/motd.
2001-06-25millert didn't compile this.Hans Insulander
2001-06-25Set "login" and "notickets" BSD auth options. We don't need to getTodd C. Miller
a kerb ticket but we do need AFS tokens.
2001-06-13more va_start/end fixes, ok deraadt@Markus Friedl
2001-06-11strncpy vs strlcpy, some strlen missuse.Michael Shalayeff
some other related minor cleanups, and spaces. millert@ ok
2001-05-29use BSD authenticationTodd C. Miller
2001-05-11mmap returns MAP_FAILED on error, not 0.Artur Grabowski
2001-03-18use GLOB_LIMITTheo de Raadt
2001-03-09Block all signals in lostconn() and sigprocmask() since we are headedTodd C. Miller
for _exit(). Fixes a signal handler race condition.
2001-03-09do not strerror() a signoTheo de Raadt
2001-02-04Whoops, don't use strlcpy with utmp; millert@Paul Janzen
2001-02-03Long usernames; also some simple strncpy->strlcpy.Paul Janzen
2001-01-19mark remaining signal racesTheo de Raadt
2001-01-09make sure replydirname() do not truncate names, even if the filenameJun-ichiro itojun Hagino
is MAXPATHLEN doublequotes. From: Paul Janzen <pjanzen@foatdi.harvard.edu>
2001-01-09make sure we do not return stray " at the end of stirng, like bla"\0.Jun-ichiro itojun Hagino
From: "William C. Allen" <allenwc@home.com>
2001-01-07Make the -P option effective (rjmooney@mediaone.net)Angelos D. Keromytis
2001-01-06Expand tilde (~) in ftp-dir login.conf variable. Closes PR 1382Todd C. Miller
2000-12-30Log the actual bytes transfered, rather than the original file size.Angelos D. Keromytis
2000-12-04in replydirname(), avoid one-byte overrun.Jun-ichiro itojun Hagino
From: Kristian Vlaardingerbroek <kris@obit.nl>
2000-12-02The man page says the default umask is 027 but it is really 022 sinceTodd C. Miller
that is the value of CMASK. Have setusercontext() set the umask unless the -u flag was specified. This allows the admin to set the umask either via -u or via a login class in login.conf.
2000-11-26setusercontext should not set umask as this interferes with theTodd C. Miller
umask specified for ftpd on the command line. Closed PR #1530
2000-11-23typo in LPSV printing. From: Hiroyuki YAMAMORI <h-yamamo@db3.so-net.ne.jp>Jun-ichiro itojun Hagino
2000-11-14cleanup EPSV/EPRT error handling. avoid possible memory leak (getaddrinfo).Jun-ichiro itojun Hagino
correct error code on unsupported protocol parameter against EPRT (522).
2000-09-15check return value for setenv(3) for failure, and deal appropriatelyTheo de Raadt
2000-08-20Add calls to setusercontext() and login_get*(). We basically callTodd C. Miller
setusercontext() in most places where previously we did a setlogin(). Add default login.conf file and put root in the "daemon" login class.
2000-07-05crank version to 6.5Theo de Raadt
2000-07-05another setproctitleTheo de Raadt
2000-07-05always setproctitle with %s if using a variableTheo de Raadt
2000-06-17pr 772; -u blocks chmod command, michaels@inet.noTheo de Raadt
2000-06-14correct STAT command output for LPSV output.Jun-ichiro itojun Hagino
2000-06-12address PR 1274 (-h does not work on EPSV).Jun-ichiro itojun Hagino
the committed code handles IPv6 case too.
2000-04-29strerrorTheo de Raadt
2000-04-11do not lose descriptors; Takahiro KambeTheo de Raadt
2000-03-03Turns out that our implementation of STAT wasn't RFC 959 compliant.bitblt
This version is now RFC 959 compliant, using a patch adapted from one sent in by david.leonard@eecs.uq.edu.au
2000-01-18Fix a pasto in the last commit. The genesis of this bug is actuallyTodd C. Miller
somewhat interesting. The getwd() function has historically placed an error message in the buffer on failure, but getcwd() does not. Therefor, a bulk search and replace of getwd() with getcwd() can create bugs like this one.
2000-01-18"pwd" should print an error, not garbage, if getcwd() fails; form@vell.nsc.ruTodd C. Miller
2000-01-14call dologout() with 1. not -1Eric Jackson
1999-12-10using u_char * is a lot more convenient than doing & 0xff 80+ timesTheo de Raadt
1999-12-09close passive mode data socket.Jun-ichiro itojun Hagino
From: deraadt
1999-12-08IPv6 support from KAME.Jun-ichiro itojun Hagino
XXX kerberos and tcp_wrapper needs checking
1999-12-03Write pid to /var/run/ftpd.pid if running in daemon mode.Todd C. Miller
1999-12-02Fix thinko on my part, we want to avoid setting mode to "r+" forTodd C. Miller
append, not for ascii.
1999-12-01Move initialization of ttyline to be after the fork() so that whenTodd C. Miller
we are in daemon mode it contains the pid of the child, not the parent. This fixes utmp/wtmp updates in daemon mode.
1999-11-29When restarting a STOR, open with "r+", not "w" so we don't truncate.Todd C. Miller
Based on a patch from rmooney@iss.net; closed PR #993
1999-11-14warning about getpeername() failing is uselessTheo de Raadt
1999-09-22correct oob handling for STAT command; ian@plutotech.comTheo de Raadt
1999-07-21bad umask is an error, syslog; pointed out by form@Theo de Raadt
1999-07-20do not proceed if incorrect args are found; found by formTheo de Raadt
1999-04-29Work around the blocking read() that causes so many hung ftpd processes.Jason Downs
This has been extensively tested.