summaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2008-08-05 14:33:37 +0000
committerBernhard Reutner-Fischer2008-08-05 14:33:37 +0000
commita4d0cd0a31f06ebefea4bd73b8e5872452583b58 (patch)
tree955192c78de56180c47491d4966455fa7e7e1104 /loginutils
parentf2b846e27718624e697cd87e9f4025826dea9ff2 (diff)
downloadbusybox-a4d0cd0a31f06ebefea4bd73b8e5872452583b58.zip
busybox-a4d0cd0a31f06ebefea4bd73b8e5872452583b58.tar.gz
- don't free user-supplied string (via -e)
- fix helptext (r23046 from trunk)
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/chpasswd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c
index 7308596..7908ef1 100644
--- a/loginutils/chpasswd.c
+++ b/loginutils/chpasswd.c
@@ -65,8 +65,8 @@ int chpasswd_main(int argc ATTRIBUTE_UNUSED, 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;
}