diff options
author | wpaul <wpaul@FreeBSD.org> | 1995-03-23 22:31:11 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1995-03-23 22:31:11 +0000 |
commit | a37e0133a67c701812c4808543bea6dc4e27e37e (patch) | |
tree | 356c99998694cec61c713b89a3c77853ac7edce4 /usr.sbin | |
parent | 7cd88703a8ca8c45c2a9e08e6eedbabc380b0734 (diff) | |
download | FreeBSD-src-a37e0133a67c701812c4808543bea6dc4e27e37e.zip FreeBSD-src-a37e0133a67c701812c4808543bea6dc4e27e37e.tar.gz |
Re-enable +::::::::: wildcards that I had previously disallowed.
Note: if you put +::0:0:::::: in /etc/master.passwd as your only NIS
entry, it will cause all NIS uids and gids to be remapped to zero. This
is *intentional*. That's the way it's supposed to work. Enabling NIS with
no remapping at all is done with +:::::::::, not +::0:0::::::. Similarly,
+:::::::::/bin/csh will remap the shells of all NIS users to /bin/csh.
Or, you could do +wpaul:::::::::/bin/csh to remap NIS user wpaul's shell
to /bin/csh but leave everyone else alone.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pwd_mkdb/pwd_mkdb.c | 8 |
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 92bb558..346d7cc 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] == '+') ? |