login: fix broken login command
It was possible to login with ctrl-c or an empty password. This bug was
introduced by the recent digest changes in common/password.c (e49a47fb).
The function check_passwd returns now also negative error codes which were
not correctly handled in do_login.

Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 0542ec6 commit cd09bf8f515c014fcceffaf2aeb8ed434dd527f2
@Hubert Feurstein Hubert Feurstein authored on 17 Jun 2015
Sascha Hauer committed on 18 Jun 2015
Showing 1 changed file
View
commands/login.c