Date: Mon, 2 Jun 2008 18:39:32 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 142764 for review Message-ID: <200806021839.m52IdWxP093239@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=142764 Change 142764 by peter@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)) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806021839.m52IdWxP093239>