summaryrefslogtreecommitdiff
path: root/libexec/ftpd/ftpcmd.y
AgeCommit message (Collapse)Author
2004-12-11make syscalls in the monitor restartable when signals occur, as wasMoritz Jodeit
the case before privsep and only wait() for our slave processes. with help from millert@ ok millert@ henning@
2004-12-06seperate reply_r, like earlier change but safer; moritz okTheo de Raadt
2004-12-04reply() used to play a lot with stdout, expecially fflush(stdout).Theo de Raadt
The recent change is to avoid stdio. That's good, except there are nearly 130 calls to this function, yet what if one of them depended on fflush() or something else in this code? The semantic change was never checked. That is not how we do development -- back this out until we know that checking work has been done.
2004-12-03make reply() reentrant. fixes a signal race.Moritz Jodeit
ok henning@
2004-11-28privilege seperate ftpdHenning Brauer
handle the pre-authentication phase (minus a tiny tiny tiny amount of code after accept()) in an unprivileged process, asking the privileged monitor for help where needed. work by Moritz Jodeit <moritz@jodeit.org> with help from theo and me tests theo ian@ matthieu@ ben@networkinsanity.com a.schlichting@lemarit.com
2003-12-10spacingTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
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-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-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-23lookup() returns pointer. Convert 0 -> NULL.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.
2001-12-28Fix memory leak with EPRT command; Hiroyuki YAMAMORITodd 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-11-05more signal marks, and some syslog_r in handlersTheo de Raadt
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-11-13combine check_epsvall + check_login into check_login_epsvall.Jun-ichiro itojun Hagino
we cnanot split check_login and check_epsvall. if we do that, we end up generating two results against single comand.
2000-11-13make sure to check_login on EPSV/LPSV. move epvsall check into check_epsvall.Jun-ichiro itojun Hagino
2000-06-17pr 772; -u blocks chmod command, michaels@inet.noTheo de Raadt
2000-04-29indentTheo de Raadt
2000-01-15(char *)0 -> NULL cleanup. From NetBSDEric Jackson
1999-12-08IPv6 support from KAME.Jun-ichiro itojun Hagino
XXX kerberos and tcp_wrapper needs checking
1999-10-08correct; dholland@hcs.harvard.edu, root@zen.ics.uwe.ac.ukTheo de Raadt
1998-05-22use TM_YEAR_BASE; lukemTheo de Raadt
1998-02-03Work around a glob() and Netscape problem; the local glob() hacker mayJason Downs
want to read the commentary if he wants another project.
1997-12-18Be so specific about the exact details of a PORT command error, that weTheo de Raadt
strike fear into the hearts of attackers (naw, I bet not...)
1997-12-18bitch if attacker tries to make PORT values overflow each other (they cannot ↵Theo de Raadt
anyways, but let him know we are onto him)
1997-12-12default to violating the RFC wrt the PORT command. Use -P to conform to theTheo de Raadt
RFC and possibly open up non-OpenBSD boxes in a trust relationship on your network to possible ftp bounce attacks...
1997-07-23tabifykstailey
1997-07-22setproctitle lessTheo de Raadt
1997-01-02Fix for the shift-reduce conflict, contributed by dholland@hcs.harvard.edu,bitblt
who is porting the OpenBSD ftpd to (of all things) Linux.
1996-12-07ftpd now eventually times out if a ftp client does:bitblt
pasv list and then crashes. The timeout should only apply the the accept(), so that transfers can take as long as necessary to complete. Thanks to Theo for moving toolong() to extern.h so that it can be used in ftpd.c as well as in ftpcmd.y.
1996-10-16Fixed a memory leak associated with the HELP and SITE HELP commands.bitblt
1996-09-19reduced the number of command availibe to users who are not loggedbitblt
in, fixed a memory leak in RNFR
1996-09-04clear passwd, for safetyTheo de Raadt
1996-08-22de-gibble ftpd for wTheo de Raadt
1996-08-07strcpy -> strncpy, kill off a strdup() clone.Jason Downs
1996-04-23sync with netbsd 960418Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt