sulogin: ensure Ctrl-D returns OK(0) also for pwd login prompt
sulogin should return OK (exit code 0) when the user presses Ctrl-D,
regardless of the prompt shown.  Otherwise Finit may look for another
sulogin to run straight after this one.
@@ -177,8 +177,10 @@ int main(void)
ch = getchar();
if (ch == '\n' || ch == '\r')
break;
- if (ch == 4 || ch == EOF) /* Ctrl-D */
+ if (ch == 4 || ch == EOF) { /* Ctrl-D */
+ rc = 0;
goto exit;
+ }
pwd[i++] = ch;
} while (i + 1 < sizeof(pwd));
