mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
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...)
This commit is contained in:
parent
3077294615
commit
69674941dd
@ -265,6 +265,12 @@
|
|||||||
#define bbconfig_full_usage \
|
#define bbconfig_full_usage \
|
||||||
"Print the config file which built busybox"
|
"Print the config file which built busybox"
|
||||||
|
|
||||||
|
#define bbsh_trivial_usage \
|
||||||
|
"[FILE]...\n" \
|
||||||
|
"or: bbsh -c command [args]..."
|
||||||
|
#define bbsh_full_usage \
|
||||||
|
"The bbsh shell (command interpreter)"
|
||||||
|
|
||||||
#define cp_trivial_usage \
|
#define cp_trivial_usage \
|
||||||
"[OPTION]... SOURCE DEST"
|
"[OPTION]... SOURCE DEST"
|
||||||
#define cp_full_usage \
|
#define cp_full_usage \
|
||||||
@ -2811,9 +2817,7 @@ USE_FEATURE_START_STOP_DAEMON_FANCY( \
|
|||||||
#define sulogin_full_usage \
|
#define sulogin_full_usage \
|
||||||
"Single user login\n" \
|
"Single user login\n" \
|
||||||
"Options:\n" \
|
"Options:\n" \
|
||||||
"\t-f\tDo not authenticate (user already authenticated)\n" \
|
"\t-t\tTimeout"
|
||||||
"\t-h\tName of the remote host for this login\n" \
|
|
||||||
"\t-p\tPreserve environment"
|
|
||||||
|
|
||||||
#define sum_trivial_usage \
|
#define sum_trivial_usage \
|
||||||
"[rs] [files...]"
|
"[rs] [files...]"
|
||||||
|
@ -55,8 +55,8 @@ int sulogin_main(int argc, char **argv)
|
|||||||
if (argv[optind]) {
|
if (argv[optind]) {
|
||||||
close(0);
|
close(0);
|
||||||
close(1);
|
close(1);
|
||||||
close(2);
|
|
||||||
dup(xopen(argv[optind], O_RDWR));
|
dup(xopen(argv[optind], O_RDWR));
|
||||||
|
close(2);
|
||||||
dup(0);
|
dup(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user