]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
Handle +:*:: the same way we handle +::: when checking group file
authorbapt <bapt@FreeBSD.org>
Sat, 1 Aug 2015 08:39:55 +0000 (08:39 +0000)
committerbapt <bapt@FreeBSD.org>
Sat, 1 Aug 2015 08:39:55 +0000 (08:39 +0000)
The first is what the documentation recommands for NIS client

usr.sbin/chkgrp/chkgrp.c

index 03758d138de9fe6777a12ea1043b31658207d181..0811e30f4e9d145154a59d140b2dda6d446f8aa6 100644 (file)
@@ -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;
 
                /*