main: fix the case where user has "halt" as login shell. Closes 9986
halt::0:0::/:/sbin/halt function old new delta run_applet_and_exit 748 751 +3 run_applet_no_and_exit 467 459 -8 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -180,7 +180,7 @@ int FAST_FUNC spawn_and_wait(char **argv)
|
||||
* as of yet (and that should probably always stay true).
|
||||
*/
|
||||
/* xfunc_error_retval and applet_name are init by: */
|
||||
run_applet_no_and_exit(a, argv);
|
||||
run_applet_no_and_exit(a, argv[0], argv);
|
||||
}
|
||||
# endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user