[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] sulogin: allow system maintenance login if root password is empty
From:       Ralf Friedl <Ralf.Friedl () online ! de>
Date:       2013-05-20 17:18:37
Message-ID: 519A5AED.8070209 () online ! de
[Download RAW message or body]

Jonathan Liu wrote:
> The current password checking is unable to distinguish between the user
> entering an empty password or pressing Control-D. As a result, an empty
> password always results in normal startup.
>
> We modify bb_ask to store the EOF status after the null terminator if
> the password is empty. This allows sulogin to properly check if
> Control-D was pressed.
>   
What about returning NULL when EOF is pressed?
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic