diff options
author | Denys Vlasenko | 2010-12-31 02:52:35 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-12-31 02:52:35 +0100 |
commit | a9e25ffa678a357c581b9b7f65a7b2ce1ae2a63e (patch) | |
tree | bdc8541f2861e793ee15d218814487af6c91b73c | |
parent | 0cd4f3039b5a6518eb322f26ed8430529befc3ae (diff) | |
download | busybox-a9e25ffa678a357c581b9b7f65a7b2ce1ae2a63e.zip busybox-a9e25ffa678a357c581b9b7f65a7b2ce1ae2a63e.tar.gz |
su: document -l in --help text. Closes bug 2761
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | include/usage.src.h | 9 | ||||
-rw-r--r-- | loginutils/su.c | 10 |
2 files changed, 10 insertions, 9 deletions
diff --git a/include/usage.src.h b/include/usage.src.h index 69a9fa1..ea0e6a4 100644 --- a/include/usage.src.h +++ b/include/usage.src.h @@ -3524,15 +3524,6 @@ INSERT "\n -g Print in stty-readable form" \ "\n [SETTING] See manpage" \ -#define su_trivial_usage \ - "[OPTIONS] [-] [USERNAME]" -#define su_full_usage "\n\n" \ - "Change user id or become root\n" \ - "\nOptions:" \ - "\n -p,-m Preserve environment" \ - "\n -c CMD Command to pass to 'sh -c'" \ - "\n -s SH Shell to use instead of default shell" \ - #define sulogin_trivial_usage \ "[-t N] [TTY]" #define sulogin_full_usage "\n\n" \ diff --git a/loginutils/su.c b/loginutils/su.c index c31e7e7..db303af 100644 --- a/loginutils/su.c +++ b/loginutils/su.c @@ -8,6 +8,16 @@ #include "libbb.h" #include <syslog.h> +//usage:#define su_trivial_usage +//usage: "[OPTIONS] [-] [USER]" +//usage:#define su_full_usage "\n\n" +//usage: "Run shell under USER (by default, root)\n" +//usage: "\nOptions:" +//usage: "\n -,-l Clear environment, run shell as login shell" +//usage: "\n -p,-m Do not set new $HOME, $SHELL, $USER, $LOGNAME" +//usage: "\n -c CMD Command to pass to 'sh -c'" +//usage: "\n -s SH Shell to use instead of user's default" + #if ENABLE_FEATURE_SU_CHECKS_SHELLS /* Return 1 if SHELL is a restricted shell (one not returned by * getusershell), else 0, meaning it is a standard shell. */ |