summaryrefslogtreecommitdiff
path: root/libexec/ftpd
AgeCommit message (Collapse)Author
2002-07-28talk about auth-ftp, not auth-ftpd entry in login.conf; from ↵Peter Valchev
francesco@toscan.biz
2002-07-24Also check for snprintf() returning < 0Todd C. Miller
2002-07-24What on earth possessed me to use %p instead of %m in syslog() toTodd C. Miller
indicate the error string?
2002-07-20Exit on setusercontext() failure; noticed by deraadt@Todd C. Miller
2002-07-14make ftpd always listen to a high tcp port for passive data connections.Jakob Schlyter
deprecate and ignore the -h option. ok deraadt@.
2002-07-02* use lostconn() as the SIGALRM handler in receive_data() as originallyDan Harnett
done by downsj@ in revision 1.54. * some -Wall cleanup - only declare check_host() if TCPWRAPPERS is defined. - use socklen_t where appropriate instead of int (pointer signedness warnings). - {u_}char * pointer signedness warnings. ok millert@
2002-06-17Initialize SIGALRM handler once in main(), instead of in severalDan Harnett
different locations. This fixes a problem where the SIGALRM handler was being set to an uninitialized pointer in receive_data(). Originally reported to the misc@ list by Colin Harford. ok millert@
2002-06-13si_len should be u_int8_t, not socklen_t; form@form.openbsd.ruTodd C. Miller
2002-06-13i heard in the bar that this breaks thingsTheo de Raadt
2002-06-10u_char -> {socklen_t, sa_family_t, in_port_t}. From form@.Mike Pechkin
millert@ ok
2002-06-09do not present scopeid on wire format (as it is local to a node).Jun-ichiro itojun Hagino
2002-05-29More pid_t cleanup. Since 'pid' is pid_t we should:Mike Pechkin
o) in ftpd_popen() convert 'pids' from int to pid_t too; o) in ftpd_pclose() return '-1', not pid_t, because it returns int; millert@ ok
2002-05-29a few more strlcatTheo de Raadt
2002-05-26pid_t cleanupTheo de Raadt
2002-03-30correct an auth_close() misuse; millert okTheo de Raadt
2002-03-27From David Krause:Todd C. Miller
o ftpd.8: alphabetically sort FILES and add login.conf & motd o midi.4 and pckbd.4: there is no pcppi(4) man page o passwd.5: s/passwd.conf/login.conf
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-19Rewrite upper().Mike Pechkin
millert@ ok
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-30Fix leak in `EPSV ALL`.Mike Pechkin
Since now ``ALL'' should be treated like CRLF, COMMA, etc. millert@ ok
2002-01-30protect `RNTO` from NULL pointer.Mike Pechkin
millert@ ok
2002-01-25s is pointer. 0 -> NULL.Mike Pechkin
millert@ ok
2002-01-25Catch not valid chmod value earlier. This make sense, before we didn'tMike Pechkin
handle some situations and pass value to chmod() instead of fatal. Idea stolen from `SITE UMASK` handler. millert@ ok
2002-01-25improve yacc file management. Idea stolen from pfctl's Makefile.Mike Pechkin
millert@ ok
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-23lookup() returns pointer. Convert 0 -> NULL.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-23``pathname'' can be NULL here too.Mike Pechkin
millert@ ok
2002-01-17reject SIZE request for ascii mode if file is larger than 10k.Jun-ichiro itojun Hagino
2002-01-08Close potential memory leak wrt "fromname"; inspired by similar FreeBSDTodd C. Miller
changes.
2002-01-08STRING is never NULL so there is no need to test it for NULL beforeTodd C. Miller
freeing it.
2002-01-07To disable a SIGCHLD signal handler use SIG_DFL, *not* SIG_IGNTodd C. Miller
which now has a different meaning.
2001-12-28Fix memory leak with EPRT command; Hiroyuki YAMAMORITodd C. Miller
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-22since 3.0 ftpd allow users w/o password. Spotted by form@.Mike Pechkin
millert@ ok
2001-11-17volatile sig_atomic_tTheo de Raadt
2001-11-13o) fix bogus .Xr usage;Mike Pechkin
o) start new sentence on a new line; o) don't use .Xr instead of .Pa tag; o) minimal -mdoc design fixes; millert@ ok;
2001-11-05more signal marks, and some syslog_r in handlersTheo de Raadt
2001-10-10ftp-chroot variable is documented in this man page, not login.conf(5)Todd C. Miller