diff options
author | Denis Vlasenko | 2006-11-30 23:13:59 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-11-30 23:13:59 +0000 |
commit | 4c87d4f242985f3ca6b2e6009ff724b0390fe583 (patch) | |
tree | 37e84f7ece7951b1fe9a636384da61ffb2569a59 | |
parent | eb98be02ac246690f35bb8029c7c405a6f1ed67b (diff) | |
download | busybox-4c87d4f242985f3ca6b2e6009ff724b0390fe583.zip busybox-4c87d4f242985f3ca6b2e6009ff724b0390fe583.tar.gz |
passwd: micro-optimization
-rw-r--r-- | loginutils/passwd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c index 83c3a2d..35dee01 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c @@ -252,7 +252,7 @@ int passwd_main(int argc, char **argv) OPT_delete = 0x8, /* -d - delete password */ OPT_lud = 0xe, STATE_ALGO_md5 = 0x10, - STATE_ALGO_des = 0x20, + /*STATE_ALGO_des = 0x20, not yet needed */ }; unsigned opt; char *opt_a = ""; @@ -269,10 +269,10 @@ int passwd_main(int argc, char **argv) argc -= optind; argv += optind; - if (strcasecmp(opt_a, "des") == 0) /* -a */ - opt |= STATE_ALGO_des; - else + if (strcasecmp(opt_a, "des") != 0) /* -a */ opt |= STATE_ALGO_md5; + //else + // opt |= STATE_ALGO_des; myuid = getuid(); if ((opt & OPT_lud) && (!argc || myuid)) bb_show_usage(); |