diff options
author | Bernhard Reutner-Fischer | 2008-08-05 09:56:56 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2008-08-05 09:56:56 +0000 |
commit | 9b44613202a6f2f080ec23746d0680dcef88628d (patch) | |
tree | aaaf60ddaa287ead3b4461dabe38c4333ee924c0 /loginutils | |
parent | 35d8c47987a96a53d810bae94b50442fda07b4fc (diff) | |
download | busybox-9b44613202a6f2f080ec23746d0680dcef88628d.zip busybox-9b44613202a6f2f080ec23746d0680dcef88628d.tar.gz |
- don't free user-supplied string (via -e)
- fix helptext
function old new delta
chpasswd_main 300 319 +19
packed_usage 24352 24344 -8
.rodata 122227 122195 -32
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 19/-40) Total: -21 bytes
Diffstat (limited to 'loginutils')
-rw-r--r-- | loginutils/chpasswd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c index 25145fd..c83d1da 100644 --- a/loginutils/chpasswd.c +++ b/loginutils/chpasswd.c @@ -65,8 +65,8 @@ int chpasswd_main(int argc UNUSED_PARAM, char **argv) bb_info_msg("Password for '%s' changed", name); logmode = LOGMODE_STDIO; free(name); - free(pass); + if (!(opt & OPT_ENC)) + free(pass); } - - return 0; + return EXIT_SUCCESS; } |