[darwinbuild-changes] [169] trunk/darwinxref/plugins/register.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 4 01:53:39 PDT 2006
Revision: 169
http://trac.macosforge.org/projects/darwinbuild/changeset/169
Author: ssen
Date: 2006-10-04 01:53:39 -0700 (Wed, 04 Oct 2006)
Log Message:
-----------
For -stdin mode, ignore ._ files. They're not too useful
for dependency tracking, and hose us because they are
not actually in the build root on HFS+.
Works around a bug in Tiger tar(1)
Modified Paths:
--------------
trunk/darwinxref/plugins/register.c
Modified: trunk/darwinxref/plugins/register.c
===================================================================
--- trunk/darwinxref/plugins/register.c 2005-08-09 15:30:10 UTC (rev 168)
+++ trunk/darwinxref/plugins/register.c 2006-10-04 08:53:39 UTC (rev 169)
@@ -398,6 +398,7 @@
char symlink[MAXPATHLEN+1];
int len;
struct stat sb;
+ char *lastpathcomp = NULL;
if (size > 0 && line[size-1] == '\n') line[--size] = 0; // chomp newline
if (size > 0 && line[size-1] == '/') line[--size] = 0; // chomp trailing slash
@@ -409,6 +410,11 @@
filename[0] = 0;
strcpy(filename, line+1); /* skip over leading "." */
+ lastpathcomp = strrchr(filename, '/');
+ if(lastpathcomp && 0 == strncmp(lastpathcomp+1, "._", 2))
+ continue;
+
+
sprintf(fullpath, "%s/%s", path, filename);
res = lstat(fullpath, &sb);
if(res != 0) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/dc7f7136/attachment.html
More information about the darwinbuild-changes
mailing list