[darwinbuild-changes] [161] trunk/darwinxref/plugins/loadDeps.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 01:53:01 PDT 2006


Revision: 161
          http://trac.macosforge.org/projects/darwinbuild/changeset/161
Author:   ssen
Date:     2006-10-04 01:53:01 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
We only want to add things that were successfully stat(2).
Hmm, there seems to be other bugs here. The realpath(3)
is being done outside the chroot.

Modified Paths:
--------------
    trunk/darwinxref/plugins/loadDeps.c

Modified: trunk/darwinxref/plugins/loadDeps.c
===================================================================
--- trunk/darwinxref/plugins/loadDeps.c	2005-08-08 07:21:23 UTC (rev 160)
+++ trunk/darwinxref/plugins/loadDeps.c	2006-10-04 08:53:01 UTC (rev 161)
@@ -173,7 +173,7 @@
 			struct stat sb;
 			int res = lstat(canonicalized, &sb);
 			// for now, skip if the path points to a directory
-			if (!(res == 0 && (sb.st_mode & S_IFDIR) == S_IFDIR)) {
+			if (res == 0 && !S_ISDIR(sb.st_mode)) {
 				SQL("INSERT INTO unresolved_dependencies (build,project,type,dependency) VALUES (%Q,%Q,%Q,%Q)",
 					build, project, type, canonicalized);
 			}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/48a69f04/attachment-0001.html


More information about the darwinbuild-changes mailing list