From d7e6af2dda0abdd7a0411af46314724bd5f88549 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 18 Mar 2008 01:13:11 +0000 Subject: 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. --- include/usage.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/usage.h') 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 @@ ) #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...]" -- cgit v1.2.3