Use <arpa/ftp.h> stuff cleanly, without introducing
non-portable constants (in this case, hidden as offsets to the "?AEIL" string.) MFC after: 1 week
This commit is contained in:
parent
3c345aacff
commit
0509d722ad
@ -95,6 +95,7 @@ extern int readonly;
|
||||
extern int noepsv;
|
||||
extern int noretr;
|
||||
extern int noguestretr;
|
||||
extern char *typenames[]; /* defined in <arpa/ftp.h> included from ftpd.c */
|
||||
|
||||
off_t restart_point;
|
||||
|
||||
@ -1601,7 +1602,8 @@ sizecmd(char *filename)
|
||||
reply(213, "%qd", count);
|
||||
break; }
|
||||
default:
|
||||
reply(504, "SIZE not implemented for Type %c.", "?AEIL"[type]);
|
||||
reply(504, "SIZE not implemented for type %s.",
|
||||
typenames[type]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user