diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-19 13:36:45 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-19 13:36:45 +0100 |
commit | 8b59b2c13ededb2c82e36193b6d6e969df36531c (patch) | |
tree | 7b5065279d3c5a6c8bd0ca90584d49bb73aac01c /loginutils | |
parent | 6ef77291122d231754e7292630681dc67c109d60 (diff) | |
download | busybox-w32-8b59b2c13ededb2c82e36193b6d6e969df36531c.tar.gz busybox-w32-8b59b2c13ededb2c82e36193b6d6e969df36531c.tar.bz2 busybox-w32-8b59b2c13ededb2c82e36193b6d6e969df36531c.zip |
libbb: move nuke_str() from passwd into libbb
function old new delta
nuke_str - 15 +15
ask_and_check_password_extended 215 206 -9
init_main 781 771 -10
nuke_str 27 - -27
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/2 up/down: 15/-46) Total: -31 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/passwd.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c index a7006f054..150908932 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c | |||
@@ -17,11 +17,6 @@ | |||
17 | #include <syslog.h> | 17 | #include <syslog.h> |
18 | #include <sys/resource.h> /* setrlimit */ | 18 | #include <sys/resource.h> /* setrlimit */ |
19 | 19 | ||
20 | static void nuke_str(char *str) | ||
21 | { | ||
22 | if (str) memset(str, 0, strlen(str)); | ||
23 | } | ||
24 | |||
25 | static char* new_password(const struct passwd *pw, uid_t myuid, const char *algo) | 20 | static char* new_password(const struct passwd *pw, uid_t myuid, const char *algo) |
26 | { | 21 | { |
27 | char salt[MAX_PW_SALT_LEN]; | 22 | char salt[MAX_PW_SALT_LEN]; |