Mercurial > unleashed > wips
changeset 20630:a6932338f701
sulogin(8): execute /bin/sh, not /usr/bin/su
/usr/bin/su does not exist in the installer. using sh instead makes it
possible to use single user mode in the installer (which can be useful
for debugging the installer, for example)
author | Lauri Tirkkonen <lotheac@iki.fi> |
---|---|
date | Mon, 16 Sep 2019 23:49:47 +0300 |
parents | 268441e1ef93 |
children | 6b362c9fbf85 |
files | usr/src/cmd/sulogin/sulogin.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/sulogin/sulogin.c Mon May 27 16:25:15 2019 +0000 +++ b/usr/src/cmd/sulogin/sulogin.c Mon Sep 16 23:49:47 2019 +0300 @@ -102,7 +102,6 @@ #define DEFAULT_CONSOLE "/dev/console" static char shell[] = "/bin/sh"; -static char su[] = "/usr/bin/su"; static int sleeptime = SLEEPTIME; static int nchild = 0; static pid_t pidlist[10]; @@ -571,7 +570,7 @@ (void) wait(NULL); free(user); free(pass); - single(su, devname); + single(shell, devname); /* single never returns */ sorry: