summaryrefslogtreecommitdiff
path: root/libexec/ftpd/ftpd.c
AgeCommit message (Collapse)Author
2002-03-30correct an auth_close() misuse; millert okTheo de Raadt
2002-03-16o Don't allow password-less accounts to login (like in 2.9 and below)Todd C. Miller
o Stash copy of struct passwd via auth_setpwd() to avoid extra needless getpwnam() calls.
2002-03-12bsd_auth.h requires other headers so it can't be firstTodd C. Miller
2002-03-12Fix a couple mis-sorted headers and sync usage() with man page.Todd C. Miller
From Brian Poole
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.Todd C. Miller
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-01strlcpyJun-ichiro itojun Hagino
2002-02-01make sure pw_dir is big enough for strcpy(pw->pw_dir, "/").Jun-ichiro itojun Hagino
2002-01-23Plug login_cap and bsd_auth related memory leaks. Problem noticedTodd C. Miller
by mpech@.
2002-01-23fix potential memory leak.Mike Pechkin
millert@ ok
2002-01-23Use always '.' in the end of the fatal() message. Consistency is good.Mike Pechkin
millert@ ok.
2002-01-23don't use \n in reply().Mike Pechkin
millert@ ok
2002-01-07To disable a SIGCHLD signal handler use SIG_DFL, *not* SIG_IGNTodd C. Miller
which now has a different meaning.
2001-12-18Don't use sigprocmask() in signal handlers when we can just set theTodd C. Miller
mask to be what we want with sigaction. Pointed out by Yar Tikhiy.
2001-12-17Add missing sigaction() call from last commitTodd C. Miller
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