History log of /netbsd-src/libexec/ftpd/cmds.c (Results 1 – 25 of 35)
Revision Date Author Comments
# 8d60259f 17-Jan-2016 christos <christos@NetBSD.org>

PR/50665: David Binderman: move "dir" to the outer scope so it stays alive
when the pointer is used later.


# 92a992f2 10-Aug-2015 shm <shm@NetBSD.org>

Fix directory stream leaks


# 9c7eb973 03-Jul-2013 christos <christos@NetBSD.org>

check that stat succeeded before testing the guts of struct stat
(Manime Villard)


# 9e697204 28-Jun-2013 joerg <joerg@NetBSD.org>

Fix violations of the sequence point rule.


# c5642eea 19-Jun-2012 dholland <dholland@NetBSD.org>

Pass WARNS=5


# 0053962f 15-Mar-2009 lukem <lukem@NetBSD.org>

Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.


# 6269ac38 02-Mar-2009 lukem <lukem@NetBSD.org>

Use LLF (et al) instead of "%lld" (et al).


# 0d7dc435 29-Dec-2008 christos <christos@NetBSD.org>

fix for 64 bit time_t and dev_t


# f1d75d00 13-Sep-2008 lukem <lukem@NetBSD.org>

Crank copyright dates


# ef70558f 09-Jun-2008 lukem <lukem@NetBSD.org>

Don't use non-standard "u_<foo>" types.
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.


# ce099b40 28-Apr-2008 martin <martin@NetBSD.org>

Remove clause 3 and 4 from TNF licenses


# 1edbda9a 01-Feb-2006 christos <christos@NetBSD.org>

debug -> ftpd_debug
xstrdup -> ftpd_strdup


# 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.


# 66970995 24-Feb-2003 erh <erh@NetBSD.org>

Fix uninitialized variable in mlsname()


# 32adf030 08-Jan-2003 manu <manu@NetBSD.org>

ftpd was unable to service the pwd request once you entered a directory
without search permission. This confused some ftp clients.

We fix this problem by maitaining a cached path when getcwd() does

ftpd was unable to service the pwd request once you entered a directory
without search permission. This confused some ftp clients.

We fix this problem by maitaining a cached path when getcwd() does not work.
The symbolic links and ../ are resolved in the cached path, and it is finnally
checked for accuracy by comparing ./ and the cached path with stat (device
and inode comparison). If the comparison fails, pwd fails as it did before,
and if the comparison succeeds, the cached path is displayed.

If paths are too long, we should just compare ./ with a truncated path and
fail, thus making pwd displaying an error as it did before.

show more ...


# 4af29262 25-Oct-2002 itojun <itojun@NetBSD.org>

Turns out that our implementation of STAT wasn't RFC 959 compliant.
This version is now RFC 959 compliant, using a patch adapted from one
sent in by david.leonard@eecs.uq.edu.au

openbsd libexec/ftpd

Turns out that our implementation of STAT wasn't RFC 959 compliant.
This version is now RFC 959 compliant, using a patch adapted from one
sent in by david.leonard@eecs.uq.edu.au

openbsd libexec/ftpd/ftpd.c revision 1.69.

(see RFC959 page 36)

show more ...


# 672b9a10 12-Oct-2002 darrenr <darrenr@NetBSD.org>

* enclose unknown command strings inside a pair of 's to clearly mark the
text as being the 'whole' part received.
* change a HELP reply from 214 to 504 when there is an error looking for
help on

* enclose unknown command strings inside a pair of 's to clearly mark the
text as being the 'whole' part received.
* change a HELP reply from 214 to 504 when there is an error looking for
help on a command.

show more ...


# 256e2017 11-Oct-2002 darrenr <darrenr@NetBSD.org>

"Command not implemented." is 502, not 501 (RFC959, 4.2.1)


# ef36a8dd 13-Feb-2002 lukem <lukem@NetBSD.org>

Fixes for mlsd/mlst standards conformance issues (noted by Robert Elz):
- mlst shouldn't return cdir or pdir for type, only dir
- mlst should always provide a full path name
- mlsd should provide a f

Fixes for mlsd/mlst standards conformance issues (noted by Robert Elz):
- mlst shouldn't return cdir or pdir for type, only dir
- mlst should always provide a full path name
- mlsd should provide a full path name for the cdir entry. (providing a
full path name for the pdir entry is optional, and i punted on that).

show more ...


# f65c7d56 01-Feb-2002 lukem <lukem@NetBSD.org>

fix previous, and ensure that closedataconn() is only called after dataconn()
and with a non-NULL file pointer. active transfers now work correctly again,
passive transfers work, and the data stream

fix previous, and ensure that closedataconn() is only called after dataconn()
and with a non-NULL file pointer. active transfers now work correctly again,
passive transfers work, and the data stream is only closed after a PASV or
EPSV if a successful connection was initiated with dataconn().

show more ...


# 9a09fa34 17-Jan-2002 itojun <itojun@NetBSD.org>

reject SIZE request for ascii file if it exceeds 10k.


# 7e903ba2 25-Apr-2001 lukem <lukem@NetBSD.org>

crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version


# 6e46d0e3 09-Jan-2001 itojun <itojun@NetBSD.org>

ensure replydirname() do not truncate the names.
From: Paul Janzen <pjanzen@foatdi.harvard.edu>


# b32589e1 09-Jan-2001 itojun <itojun@NetBSD.org>

make sure we do not return stray " at the end of stirng, like bla"\0.
From: "William C. Allen" <allenwc@home.com>


12