diff options
author | bapt <bapt@FreeBSD.org> | 2015-08-01 08:39:55 +0000 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2015-08-01 08:39:55 +0000 |
commit | ae91558e00cdf2010c83754b45535025936bf4d1 (patch) | |
tree | cbfc326e2ea97a7a9a1bfed2f886b3726be3604c /usr.sbin/chkgrp/chkgrp.c | |
parent | 32471dd33a67355dad3d593827c7b350a939e81d (diff) | |
download | FreeBSD-src-ae91558e00cdf2010c83754b45535025936bf4d1.zip FreeBSD-src-ae91558e00cdf2010c83754b45535025936bf4d1.tar.gz |
Handle +:*:: the same way we handle +::: when checking group file
The first is what the documentation recommands for NIS client
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 03758d1..0811e30 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; /* |