summaryrefslogtreecommitdiff
path: root/libexec/ftpd/ftpd.c
AgeCommit message (Collapse)Author
2001-12-07kill more registers;Mike Pechkin
millert@ ok
2001-12-04Kill setjmp/longjmpTodd C. Miller
o fix error recovery in the parser so there is no longer a need for jmping o make SIGURG handler interupt syscalls and just set a flag that we test for later. Use waitpid() not wait3() for portability. Restart waitpid() loop if another signal interrupts us. Calling dologout() from signal handlers is safe because it doesn't use stdio, nor do the two functions it calls (logout and ftpdlogwtmp).
2001-12-01Use pidfile() instead of doing the equivalent thing by hand, and sometimesMiod Vallat
forgetting to unlink the pid file at exit. ok millert@ deraadt@
2001-11-17volatile sig_atomic_tTheo de Raadt
2001-11-05more signal marks, and some syslog_r in handlersTheo de Raadt
2001-10-02as is aleady closed and freed by auth_userresponse, ok millert@Peter Stromberg
2001-09-05make sure that va_start() has matching va_end()Theo de Raadt
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.