From c78ef640cd18847a962d3e1fdb84ad6c265b0deb Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 10 Aug 2011 12:47:08 +0200 Subject: login: add timeout support If a timeout is specified and expired the command will be executed by default boot Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- commands/passwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/passwd.c') diff --git a/commands/passwd.c b/commands/passwd.c index 94350911df..9a0787372a 100644 --- a/commands/passwd.c +++ b/commands/passwd.c @@ -42,13 +42,13 @@ static int do_passwd(struct command *cmdtp, int argc, char *argv[]) int ret = 1; puts("Enter new password: "); - passwd1_len = password(passwd1, PASSWD_MAX_LENGTH, PASSWD_MODE); + passwd1_len = password(passwd1, PASSWD_MAX_LENGTH, PASSWD_MODE, 0); if (passwd1_len < 0) return 1; puts("Retype new password: "); - passwd2_len = password(passwd2, PASSWD_MAX_LENGTH, PASSWD_MODE); + passwd2_len = password(passwd2, PASSWD_MAX_LENGTH, PASSWD_MODE, 0); if (passwd2_len < 0) return 1; -- cgit v1.2.3