| #
c09e755b |
| 09-Aug-2015 |
shm <shm@NetBSD.org> |
Removed unnecessary memset(3) call
|
| #
0c7f5afe |
| 09-Aug-2015 |
shm <shm@NetBSD.org> |
Clear utmpx struct before writing it to wtmpx files
|
| #
47e7cfa9 |
| 23-Sep-2006 |
xtraeme <xtraeme@NetBSD.org> |
Apply patch from PR bin/33261 sent by FUKAOMI Naoki: "ftpd does not update wtmpx".
Thanks.
|
| #
ea7965eb |
| 23-Jun-2005 |
christos <christos@NetBSD.org> |
cleanup utmp and utmpx support. - make them symmetric - add a function to open the wtmp file explicitly very early in the game
|
| #
3b40bfae |
| 11-Nov-2004 |
christos <christos@NetBSD.org> |
Don't write trash in ut_ss; either initialize it to 0, or put in the proper information.
|
| #
635a3757 |
| 09-Aug-2004 |
lukem <lukem@NetBSD.org> |
Fixes from (or inspired by) OpenBSD: * Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary. * Fix SIGURG handler to set an urgflag that's later tested, rather than abusing se
Fixes from (or inspired by) OpenBSD: * Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary. * Fix SIGURG handler to set an urgflag that's later tested, rather than abusing setjmp(3)/longjmp(3). * Use "volatile sig_atomic_t" as the type of variables modified by sig handlers. * Use sigaction(3) instead of signal(3) to set the signal handlers. * Only set the main SIGALRM handler once. If we need to change it, cache the old handler and restore appropriately... * Remove a bunch of signal races by improving the signal handlers. * Fix memory leak with 'ESPV ALL'.
My stuff: * Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3). * Rework parsing of OOB commands to _not_ use the yacc parser, since the latter isn't reentrant and the hacks to work around that are ugly. We now examine urgflag at appropriate locations and call handleoobcmd() if it's set. Since the only OOB commands we currently implement are ABOR and STAT, this isn't an issue. (I also can't find the reference in RFC2228 where MIC, CONF & ENC are OOB-only commands. Go figure.) I could clean up the is_oob stuff some more, but the remaining stuff in ftpcmd.y is harmless and it's unnecessary churn right this moment.
show more ...
|
| #
8e6ab883 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22284, verified by myself.
|
| #
3bab95ce |
| 30-Jun-2003 |
tacha <tacha@NetBSD.org> |
Add ftpd_loginx() and ftpd_logwtmpx() and use them to hold wtmpx file open while a session.
Close bin/21692 by bqt@Krille.Update.UU.SE.
|
| #
55803244 |
| 23-Feb-2003 |
lukem <lukem@NetBSD.org> |
rename local copies of login(), logout() and logwtmp() to ftpd_login(), ftpd_logout() and ftpd_logwtmp() respectively. (makes utmp support much easier in tnftpd).
per suggestion in mail from Mike He
rename local copies of login(), logout() and logwtmp() to ftpd_login(), ftpd_logout() and ftpd_logwtmp() respectively. (makes utmp support much easier in tnftpd).
per suggestion in mail from Mike Heffner <mheffner@vt.edu>, who forwarded patch from Michael Ranner <mranner@inode.at>.
show more ...
|
| #
a05a73b5 |
| 13-Sep-2002 |
itojun <itojun@NetBSD.org> |
revert previous. wtmp{,x} entries need not be \0-terminated, so strncpy is more proper.
|
| #
57afbee2 |
| 12-Sep-2002 |
itojun <itojun@NetBSD.org> |
use strl*, not strn*.
|
| #
4056c9f7 |
| 04-Feb-2001 |
christos <christos@NetBSD.org> |
fix redundant declarations.
|
| #
dcc88422 |
| 20-May-2000 |
lukem <lukem@NetBSD.org> |
convert to ANSI C as per style guide
|
| #
f318090c |
| 05-Mar-2000 |
lukem <lukem@NetBSD.org> |
* don't bother with a version[] string, just use the macro as appropriate * clean some more of the GLOBAL stuff * fix unused var if -UHASSETPROCTITLE
|
| #
c8493e94 |
| 12-Jan-2000 |
lukem <lukem@NetBSD.org> |
* add ftpd.conf directive `portrange class min max', which allows specification of the port range used by passive connections. based on work in [bin/9158] from Takahiro Kambe <taca@sky.yamashina.
* add ftpd.conf directive `portrange class min max', which allows specification of the port range used by passive connections. based on work in [bin/9158] from Takahiro Kambe <taca@sky.yamashina.kyoto.jp> * change the way global variables are defined and extern-ed to be more consistent.
show more ...
|
| #
cee9ac24 |
| 25-Aug-1999 |
christos <christos@NetBSD.org> |
more kerberos5 fixes
|
| #
b2f939ac |
| 24-Feb-1999 |
explorer <explorer@NetBSD.org> |
Make this build with KERBEROS5 defined.
|
| #
c984c191 |
| 28-Dec-1998 |
lukem <lukem@NetBSD.org> |
* replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner solution with less code replication. use realpath() in logcmd() so that all logged filenames are sane. * support `REST STREAM' in
* replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner solution with less code replication. use realpath() in logcmd() so that all logged filenames are sane. * support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05) * in 'HELP', suffix unimplemented commands with `-' instead of `*'; the former is easier to differentiate from `+'. * deprecate curdir() now that logcmd() doesn't use it. * ensure all filename buffers are at least MAXPATHLEN+1 in size. * move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h> in every file.
show more ...
|
| #
9e9281f6 |
| 12-Sep-1998 |
kleink <kleink@NetBSD.org> |
Need <signal.h> for sig_atomic_t.
|
| #
0e5bdd51 |
| 06-Sep-1998 |
lukem <lukem@NetBSD.org> |
* complete fix for `multiple replies returned for single parse error' problem; move `hasyyerrored' state flag out of yylex() so that check_{login,modify} can also set it. * check result of check_
* complete fix for `multiple replies returned for single parse error' problem; move `hasyyerrored' state flag out of yylex() so that check_{login,modify} can also set it. * check result of check_login for PORT command * set initial timeout before the "setjmp(); for(;;) yyparse()", otherwise an invalid command after login incorrectly sets the timeout to 5 minutes (rather than what was set in ftpd.conf) * replace (char *)0 with NULL * move yyerror() from ftpd.c to ftpcmd.y * remove need for -Dunix, by using the version string from ftpd.c (instead of `BSD-199506') * move all extern-ed vars into extern.h
show more ...
|
| #
6de775c2 |
| 27-Jul-1998 |
mycroft <mycroft@NetBSD.org> |
const poisoning.
|
| #
cd7d0f55 |
| 01-Apr-1998 |
kleink <kleink@NetBSD.org> |
Need <time.h> for time() prototype.
|
| #
2424c4f9 |
| 18-Jun-1997 |
christos <christos@NetBSD.org> |
- Pass gcc -Wall - Fix incorrect const poisoning - Fix ftpd_popen to dynamically allocate strings to avoid buffer overruns.
|
| #
6a991762 |
| 11-Apr-1995 |
cgd <cgd@NetBSD.org> |
clean up RCS Id's and a couple of stype nits. Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
|
| #
d6743f02 |
| 29-Jun-1994 |
deraadt <deraadt@NetBSD.org> |
4.4-lite, plus our local changes
|