diff options
author | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-11 00:34:01 +0000 |
---|---|---|
committer | landley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-09-11 00:34:01 +0000 |
commit | 69fe630551ee898bda235c68aa3c696121e67b76 (patch) | |
tree | 3a748dea99473ad21cf5f7ca6a4cba013a8673ca | |
parent | ac50ba6164b10ecbdea6168d37154788556a1dd6 (diff) | |
download | busybox-w32-69fe630551ee898bda235c68aa3c696121e67b76.tar.gz busybox-w32-69fe630551ee898bda235c68aa3c696121e67b76.tar.bz2 busybox-w32-69fe630551ee898bda235c68aa3c696121e67b76.zip |
Error reporting fix for sulogin, plus remove help entries for options we never
implemented. (Plus a bit more of bbsh leaking in from my tree, but it
shouldn't hurt anything and I'm lazy...)
git-svn-id: svn://busybox.net/trunk/busybox@16097 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | include/usage.h | 10 | ||||
-rw-r--r-- | loginutils/sulogin.c | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/usage.h b/include/usage.h index a1ba0a282..7ebd660ac 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -265,6 +265,12 @@ | |||
265 | #define bbconfig_full_usage \ | 265 | #define bbconfig_full_usage \ |
266 | "Print the config file which built busybox" | 266 | "Print the config file which built busybox" |
267 | 267 | ||
268 | #define bbsh_trivial_usage \ | ||
269 | "[FILE]...\n" \ | ||
270 | "or: bbsh -c command [args]..." | ||
271 | #define bbsh_full_usage \ | ||
272 | "The bbsh shell (command interpreter)" | ||
273 | |||
268 | #define cp_trivial_usage \ | 274 | #define cp_trivial_usage \ |
269 | "[OPTION]... SOURCE DEST" | 275 | "[OPTION]... SOURCE DEST" |
270 | #define cp_full_usage \ | 276 | #define cp_full_usage \ |
@@ -2811,9 +2817,7 @@ USE_FEATURE_START_STOP_DAEMON_FANCY( \ | |||
2811 | #define sulogin_full_usage \ | 2817 | #define sulogin_full_usage \ |
2812 | "Single user login\n" \ | 2818 | "Single user login\n" \ |
2813 | "Options:\n" \ | 2819 | "Options:\n" \ |
2814 | "\t-f\tDo not authenticate (user already authenticated)\n" \ | 2820 | "\t-t\tTimeout" |
2815 | "\t-h\tName of the remote host for this login\n" \ | ||
2816 | "\t-p\tPreserve environment" | ||
2817 | 2821 | ||
2818 | #define sum_trivial_usage \ | 2822 | #define sum_trivial_usage \ |
2819 | "[rs] [files...]" | 2823 | "[rs] [files...]" |
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c index fef3760e9..a2238d49d 100644 --- a/loginutils/sulogin.c +++ b/loginutils/sulogin.c | |||
@@ -55,8 +55,8 @@ int sulogin_main(int argc, char **argv) | |||
55 | if (argv[optind]) { | 55 | if (argv[optind]) { |
56 | close(0); | 56 | close(0); |
57 | close(1); | 57 | close(1); |
58 | close(2); | ||
59 | dup(xopen(argv[optind], O_RDWR)); | 58 | dup(xopen(argv[optind], O_RDWR)); |
59 | close(2); | ||
60 | dup(0); | 60 | dup(0); |
61 | } | 61 | } |
62 | 62 | ||