From a9e25ffa678a357c581b9b7f65a7b2ce1ae2a63e Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 31 Dec 2010 02:52:35 +0100 Subject: su: document -l in --help text. Closes bug 2761 Signed-off-by: Denys Vlasenko --- loginutils/su.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'loginutils') diff --git a/loginutils/su.c b/loginutils/su.c index c31e7e771..db303af6d 100644 --- a/loginutils/su.c +++ b/loginutils/su.c @@ -8,6 +8,16 @@ #include "libbb.h" #include +//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. */ -- cgit v1.2.3