diff options
author | Denis Vlasenko | 2008-03-18 01:13:11 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-03-18 01:13:11 +0000 |
commit | d7e6af2dda0abdd7a0411af46314724bd5f88549 (patch) | |
tree | e77291fb6fcb2d93c9c6ec60e21ddfe8bea5dc64 /include | |
parent | 78c565653005192c4587fce1ccac6c441cea7ca6 (diff) | |
download | busybox-d7e6af2dda0abdd7a0411af46314724bd5f88549.zip busybox-d7e6af2dda0abdd7a0411af46314724bd5f88549.tar.gz |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/usage.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h index 1fa40ce..7fe9ad0 100644 --- a/include/usage.h +++ b/include/usage.h @@ -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...]" |