aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1995-03-23 22:31:11 +0000
committerBill Paul <wpaul@FreeBSD.org>1995-03-23 22:31:11 +0000
commitd038db90e8c555f68433254cf1c2104e2387d71d (patch)
tree356c99998694cec61c713b89a3c77853ac7edce4
parente17334c3292be0b076aca35fed6e8544b620c1bf (diff)
Notes
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index 92bb558689c5..346d7cc82a91 100644
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c
@@ -179,7 +179,7 @@ main(argc, argv)
data.data = (u_char *)buf;
key.data = (u_char *)tbuf;
for (cnt = 1; scan(fp, &pwd); ++cnt) {
- if(pwd.pw_name[0] == '+')
+ if(pwd.pw_name[0] == '+' pwd.pw_name[0] == '-')
yp_enabled = 1;
#define COMPACT(e) t = e; while (*p++ = *t++);
/* Create insecure data. */
@@ -225,8 +225,7 @@ main(argc, argv)
error("put");
/* Store insecure special plus and special minus */
- if ((pwd.pw_name[0] == '+' || pwd.pw_name[0] == '-')
- && pwd.pw_name[1]) {
+ if (pwd.pw_name[0] == '+' || pwd.pw_name[0] == '-') {
tbuf[0] = (pwd.pw_name[0] == '+') ?
_PW_KEYPLUSBYNUM : _PW_KEYMINUSBYNUM;
memmove(tbuf + 1, (pwd.pw_name[0] == '+') ?
@@ -335,8 +334,7 @@ main(argc, argv)
error("put");
/* Store secure special plus and special minus */
- if ((pwd.pw_name[0] == '+' || pwd.pw_name[0] == '-')
- && pwd.pw_name[1]) {
+ if (pwd.pw_name[0] == '+' || pwd.pw_name[0] == '-') {
tbuf[0] = (pwd.pw_name[0] == '+') ?
_PW_KEYPLUSBYNUM : _PW_KEYMINUSBYNUM;
memmove(tbuf + 1, (pwd.pw_name[0] == '+') ?