summaryrefslogtreecommitdiff
path: root/libexec
AgeCommit message (Collapse)Author
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-10print proper host name for the proxy's peer; bob okMichael Shalayeff
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-07While I'm here (next issue):Mike Pechkin
o) __progname; o) remove #define LOG_DAEMON; o) use openlog() before syslog(); o) write $version to stderr; millert@ ok
2002-01-07o) int -> {uid,gid}_t; %d -> %u;Mike Pechkin
o) int -> pid_t; deraadt@ ok
2002-01-07To disable a SIGCHLD signal handler use SIG_DFL, *not* SIG_IGNTodd C. Miller
which now has a different meaning.
2002-01-07To disable a SIGCHLD signal handler use SIG_DFL, *not* SIG_IGNTodd C. Miller
which now has a different meaning.
2002-01-06Don't let root change it's password via login_l?chpass(8).Todd C. Miller
At some point in the future, passwd(1) may call these auth methods at which time we will need a flag to allow root to do a password change and also to allow account w/o a password to be given one.
2001-12-30setup stdout & stderr; marius@alchemy.franken.deTheo de Raadt
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-14RFC 959 wasn't clear about what happens around a PASV reply, and inBob Beck
fact RFC 1123 does say that it may not contain parenthesis, and you just have to look at the end of the line. Tholo managed to find a TOPS20 ftp server (toad.xkl.com) that doesn't put parens around the reply - This fixes it so it will handle either case.
2001-12-09Do not use stdio functions after a successfull call to daemon(), useMiod Vallat
syslog() instead. ok millert@
2001-12-07Kill longjmp by not restarting system calls on receipt of SIGALRM.Todd C. Miller
We can then just check the flag to see that the alarm ran out.
2001-12-07kill more registers;Mike Pechkin
millert@ ok
2001-12-07Block keyboard-generated signals during database accesses.Todd C. Miller
2001-12-07mark longjmp raceTheo de Raadt
2001-12-07Catch SIGINT, SIGQUIT and SIGTSTP but ignore during the databaseTodd C. Miller
update. We have to be careful and drop our lock if we are suspended and then regain the lock on resume. This is necessary because the user must not be allowed to keep a record locked for a long period of time to avoid a DoS. We must be sure to re-lock when we resume because otherwise an attacker could suspend us until a user starts to login and then resume and then race the user for login using the challenge response from the user.
2001-12-07o Use writev() to send status on the backchannel instead of fdopen()ingTodd C. Miller
fd 3 and using stdio. o Add SIGINT/SIGQUIT signal handler for yp_chpass() now that getpass() is interuptible. o Block SIGINT/SIGQUIT in krb_chpass() until it is made to clean up after itself properly.
2001-12-07Use writev() to send status on the backchannel instead of fdopen()ingTodd C. Miller
fd 3 and using stdio.
2001-12-06Do not set handler for SIGINT and SIGQUIT to SIG_IGN since it preventsTodd C. Miller
getpass()/readpassphrase() from being able to restore the tty mode on keyboard interrupt. Along with the recent readpassphrase.c commit this means that if you ^C things that use login scripts (like su(1)) with a non-CBREAK shell your tty mode will be restored nicely. TODO: The various login scripts need to install handlers to avoid leaving turd files or otherwise ending in a bad state. It would also be nice to send BI_REJECT to the back channel.
2001-12-06comment typo, and $OpenBSD$ (thanks pval)Bob Beck
2001-12-06Fix realloc in getline so we exit on failure - in this context it's sillyBob Beck
to try to continue and hold on to the same memory if we can't get memory to hold a control command. log and fail instead. (absurdity spotted by theo)
2001-12-06use .Nm moreTheo de Raadt
2001-12-06don't use "you" in a man page.Bob Beck
2001-12-06*** empty log message ***Bob Beck
2001-12-05typoDaniel Hartmeier
2001-12-05Explain that filter rules need to let pass connections to the proxy portsDaniel Hartmeier
in, why this is so, and how it's done.
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-03Ignore leading whitespace in commands. From Frank Denis. Closes PR 2226.Daniel Hartmeier
2001-12-03Remove the last line, pf does support IPv6 now.Daniel Hartmeier
From Dries Schellekens. Closes PR 2221.
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-12-01fix fd_set overflowTheo de Raadt
2001-11-27When copying command line arguments to out new argument vector,Todd C. Miller
don't go past the end of the buffer. Not a security issue since root controls the fingerd arguments. Noticed by Brian Poole.
2001-11-27Use strlcat() when adding to 'make_arg' via the -m flag to avoidTodd C. Miller
overflowing. Closes PR 2201.
2001-11-22since 3.0 ftpd allow users w/o password. Spotted by form@.Mike Pechkin
millert@ ok
2001-11-20bye bye, libdlPeter Valchev
2001-11-19remove the signal handler races and longjmps, and then do a bit of KNFTheo de Raadt
2001-11-19clean & KNFTheo de Raadt
2001-11-18create own svc_run(), which can do updating outside of a signal handlerTheo de Raadt
2001-11-18blow away unused XIDLE signal race crapTheo de Raadt
2001-11-18Ensure SA_RESTART is not set on SIGALRM. With it set, the SIGALRM is notTheo de Raadt
seen after a successful recv(). This affects some other programs too.. but turning off SA_RESTART requires SIGNIFICANT analysis -- not for the faint of heart.
2001-11-17volatile sig_atomic_tTheo de Raadt