diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-18 01:13:11 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-18 01:13:11 +0000 |
commit | d7e6af2dda0abdd7a0411af46314724bd5f88549 (patch) | |
tree | e77291fb6fcb2d93c9c6ec60e21ddfe8bea5dc64 /include | |
parent | 78c565653005192c4587fce1ccac6c441cea7ca6 (diff) | |
download | busybox-w32-d7e6af2dda0abdd7a0411af46314724bd5f88549.tar.gz busybox-w32-d7e6af2dda0abdd7a0411af46314724bd5f88549.tar.bz2 busybox-w32-d7e6af2dda0abdd7a0411af46314724bd5f88549.zip |
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 1fa40ce98..7fe9ad063 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -3977,9 +3977,11 @@ | |||
3977 | ) | 3977 | ) |
3978 | 3978 | ||
3979 | #define tftpd_trivial_usage \ | 3979 | #define tftpd_trivial_usage \ |
3980 | "[DIR]" | 3980 | "[-r] [DIR]" |
3981 | #define tftpd_full_usage \ | 3981 | #define tftpd_full_usage \ |
3982 | "Transfer a file on request from a tftp client" \ | 3982 | "Transfer a file on request from a tftp client.\n" \ |
3983 | "\nOptions:" \ | ||
3984 | "\n -r Prohibit upload" \ | ||
3983 | 3985 | ||
3984 | #define time_trivial_usage \ | 3986 | #define time_trivial_usage \ |
3985 | "[OPTION]... COMMAND [ARGS...]" | 3987 | "[OPTION]... COMMAND [ARGS...]" |