PERFORCE change 1100189 for review

Brooks Davis brooks at FreeBSD.org
Tue Oct 15 21:45:10 UTC 2013


http://p4web.freebsd.org/@@1100189?ac=10

Change 1100189 by brooks at brooks_zenith on 2013/10/15 21:44:10

	Ignore comment lines.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/contrib/mtree/getid.c#2 edit

Differences ...

==== //depot/projects/ctsrd/beribsd/src/contrib/mtree/getid.c#2 (text+ko) ====

@@ -230,6 +230,9 @@
 				;
 			continue;
 		}
+		/* skip comments */
+		if (grline[0] == '#')
+			continue;
 		if (grmatchline(search, gid, name))
 			return 1;
 	}
@@ -371,6 +374,9 @@
 				;
 			continue;
 		}
+		/* skip comments */
+		if (pwline[0] == '#')
+			continue;
 		if (pwmatchline(search, uid, name))
 			return 1;
 	}


More information about the p4-projects mailing list