sulogin: use common password-checking routine.
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 19 Nov 2013 12:09:06 +0000 (13:09 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 19 Nov 2013 12:09:06 +0000 (13:09 +0100)
commit9c1c605b1a8f34aef347bd9c2e4aea251e556d1b
tree1854674f7025a8679bd42bd4f056d22a6df891a3
parentf6beef63c64abfc126ea4e73147af29d152f1a9e
sulogin: use common password-checking routine.

This needed some extensions correct_passwd() function,
which got renamed ask_and_check_password() to better describe what it does.

function                                             old     new   delta
ask_and_check_password_extended                        -     215    +215
ask_and_check_password                                 -      12     +12
vlock_main                                           394     397      +3
sulogin_main                                         494     326    -168
correct_password                                     207       -    -207
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 1/1 up/down: 230/-375)         Total: -145 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/correct_password.c
loginutils/login.c
loginutils/su.c
loginutils/sulogin.c
loginutils/vlock.c