[darwinbuild-changes] [879] branches/PR-8416637/darwinup/Utils.cpp
source_changes at macosforge.org
source_changes at macosforge.org
Thu Sep 16 15:51:19 PDT 2010
Revision: 879
http://trac.macosforge.org/projects/darwinbuild/changeset/879
Author: wsiegrist at apple.com
Date: 2010-09-16 15:51:18 -0700 (Thu, 16 Sep 2010)
Log Message:
-----------
Use lstat() when testing directories so we do not consider a symlink-to-directory a directory
Modified Paths:
--------------
branches/PR-8416637/darwinup/Utils.cpp
Modified: branches/PR-8416637/darwinup/Utils.cpp
===================================================================
--- branches/PR-8416637/darwinup/Utils.cpp 2010-09-16 21:19:29 UTC (rev 878)
+++ branches/PR-8416637/darwinup/Utils.cpp 2010-09-16 22:51:18 UTC (rev 879)
@@ -104,7 +104,7 @@
int is_directory(const char* path) {
struct stat sb;
- int res = stat(path, &sb);
+ int res = lstat(path, &sb);
return (res == 0 && S_ISDIR(sb.st_mode));
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20100916/d11e3295/attachment.html>
More information about the darwinbuild-changes
mailing list