summaryrefslogtreecommitdiff
path: root/loginutils/passwd.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-12 18:11:58 +0000
committerDenis Vlasenko2006-12-12 18:11:58 +0000
commit16c2c700fd26825fbd3e9591b5f590f5d2abf65d (patch)
tree13c3301e5154649493d1ff182398e2ae5f5144db /loginutils/passwd.c
parentdb2b52425dced7665cc33cc9fb6ade688fcbce4a (diff)
downloadbusybox-16c2c700fd26825fbd3e9591b5f590f5d2abf65d.zip
busybox-16c2c700fd26825fbd3e9591b5f590f5d2abf65d.tar.gz
passwd: fix indentation
Diffstat (limited to 'loginutils/passwd.c')
-rw-r--r--loginutils/passwd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c
index c28e9b8..bcb7f2b 100644
--- a/loginutils/passwd.c
+++ b/loginutils/passwd.c
@@ -77,9 +77,8 @@ static char* new_password(const struct passwd *pw, uid_t myuid, int algo)
if (!newp)
goto err_ret;
newp = xstrdup(newp); /* we are going to bb_askpass() again, so save it */
- if (obscure(orig, newp, pw) && myuid) {
- goto err_ret; /* non-root is not allowed to have weak passwd */
- }
+ if (obscure(orig, newp, pw) && myuid)
+ goto err_ret; /* non-root is not allowed to have weak passwd */
cp = bb_askpass(0, "Retype password:");
if (!cp)