diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-01 08:39:55 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2015-08-01 08:39:55 +0000 |
commit | f4e060d0f7b7e02e55d666e3d30021724c62de63 (patch) | |
tree | cbfc326e2ea97a7a9a1bfed2f886b3726be3604c /usr.sbin/chkgrp/chkgrp.c | |
parent | e622418c5bee0970d278fa667bae4dbf1e91cda0 (diff) |
Handle +:*:: the same way we handle +::: when checking group file
The first is what the documentation recommands for NIS client
Notes
Notes:
svn path=/head/; revision=286149
Diffstat (limited to 'usr.sbin/chkgrp/chkgrp.c')
-rw-r--r-- | usr.sbin/chkgrp/chkgrp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/chkgrp/chkgrp.c b/usr.sbin/chkgrp/chkgrp.c index 03758d138de9..0811e30f4e9d 100644 --- a/usr.sbin/chkgrp/chkgrp.c +++ b/usr.sbin/chkgrp/chkgrp.c @@ -106,7 +106,8 @@ main(int argc, char *argv[]) /* * Hack: special case for + line */ - if (strncmp(line, "+:::", len) == 0) + if (strncmp(line, "+:::", len) == 0 || + strncmp(line, "+:*::", len) == 0) continue; /* |