[PATCH] minor cosmetical fix in correct_password.c

Tito farmatito at tiscali.it
Fri Dec 30 13:29:03 UTC 2005


Hi,
this patch avoids a composed password prompt like the one used in vlock.c
to be messed up by the error message when /etc/shadow is missing.

		printf("Virtual Console%s locked.\n%s's ", (o_lock_all) ? "s" : "", pw->pw_name);
		fflush(stdout);
		if (correct_password (pw)) {
			break;
		}

The output is:

Virtual Console locked. root's Password:

if /etc/shadow is missing:

Virtual Console locked. root's no valid shadow password

Please apply if you think it is safe to do so and if you care about it.

Ciao,
Tito
-------------- next part --------------
A non-text attachment was scrubbed...
Name: correct_password.diff
Type: text/x-diff
Size: 590 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20051230/69feb3f5/attachment.bin 


More information about the busybox mailing list