PERFORCE change 142764 for review
Peter Wemm
peter at FreeBSD.org
Mon Jun 2 18:39:33 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=142764
Change 142764 by peter at peter_overcee on 2008/06/02 18:39:25
Grrr. HACK ALERT!
Affected files ...
.. //depot/projects/hammer/gnu/usr.bin/grep/savedir.c#4 edit
Differences ...
==== //depot/projects/hammer/gnu/usr.bin/grep/savedir.c#4 (text+ko) ====
@@ -133,6 +133,14 @@
{
off_t size_needed = (namep - name_space) + NAMLEN (dp) + 2;
+ /* Exclude SCM control files and other known junk */
+ if ((strcmp(dp->d_name, ".svn") == 0 ||
+ strcmp(dp->d_name, "CVS") == 0 ||
+ strcmp(dp->d_name, "RCS") == 0 ||
+ strcmp(dp->d_name, "obj") == 0 ||
+ strcmp(dp->d_name, "compile") == 0) && isdir1 (dir, dp->d_name))
+ continue;
+
if ((included_patterns || excluded_patterns)
&& !isdir1 (dir, dp->d_name))
{
More information about the p4-projects
mailing list