tftpd: make open() check r/w permissions instead of doing it ourself.

Add -r "prohibit upload" opt for those lazy people who run tftpd as root.
-40 bytes.
This commit is contained in:
Denis Vlasenko
2008-03-18 01:13:11 +00:00
parent 78c5656530
commit d7e6af2dda
2 changed files with 31 additions and 23 deletions

View File

@ -3977,9 +3977,11 @@
)
#define tftpd_trivial_usage \
"[DIR]"
"[-r] [DIR]"
#define tftpd_full_usage \
"Transfer a file on request from a tftp client" \
"Transfer a file on request from a tftp client.\n" \
"\nOptions:" \
"\n -r Prohibit upload" \
#define time_trivial_usage \
"[OPTION]... COMMAND [ARGS...]"