Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2013 21:45:10 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 1100189 for review
Message-ID:  <201310152145.r9FLjAWk054646@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@1100189?ac=10

Change 1100189 by brooks@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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310152145.r9FLjAWk054646>