]> git.lizzy.rs Git - plan9front.git/commitdiff
ftpd: handle "allo" command by treating it as a no-op
authorAlex Musolino <alex@musolino.id.au>
Wed, 23 Sep 2020 03:14:05 +0000 (12:44 +0930)
committerAlex Musolino <alex@musolino.id.au>
Wed, 23 Sep 2020 03:14:05 +0000 (12:44 +0930)
RFC959 says:

"The ALLO command should be treated as a NOOP (no
operation) by those servers which do not require
that the maximum size of the file be declared
beforehand..."

sys/src/cmd/ip/ftpd.c

index f4ebbf68bad5771c0691409b896dd08a31334199..6661189e9965a4435a25ab330e5be89133fe8147 100644 (file)
@@ -85,6 +85,7 @@ struct Cmd
 Cmd cmdtab[] =
 {
        { "abor",       abortcmd,       0, },
+       { "allo",       nopcmd,         1, },
        { "appe",       appendcmd,      1, },
        { "cdup",       cdupcmd,        1, },
        { "cwd",        cwdcmd,         1, },