svn commit: r286149 - head/usr.sbin/chkgrp

Baptiste Daroussin bapt at FreeBSD.org
Sat Aug 1 08:39:57 UTC 2015


Author: bapt
Date: Sat Aug  1 08:39:55 2015
New Revision: 286149
URL: https://svnweb.freebsd.org/changeset/base/286149

Log:
  Handle +:*:: the same way we handle +::: when checking group file
  
  The first is what the documentation recommands for NIS client

Modified:
  head/usr.sbin/chkgrp/chkgrp.c

Modified: head/usr.sbin/chkgrp/chkgrp.c
==============================================================================
--- head/usr.sbin/chkgrp/chkgrp.c	Sat Aug  1 08:35:20 2015	(r286148)
+++ head/usr.sbin/chkgrp/chkgrp.c	Sat Aug  1 08:39:55 2015	(r286149)
@@ -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;
 
 		/*


More information about the svn-src-all mailing list