projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
80-col violation.
[oota-llvm.git]
/
lib
/
System
/
Unix
/
Path.inc
diff --git
a/lib/System/Unix/Path.inc
b/lib/System/Unix/Path.inc
index 184da1e27ac0c7a32dd76fc9495952bd7e0fb75e..4c97c4b71ccf96c89e7e3ea8aa7f82ead5b4359a 100644
(file)
--- a/
lib/System/Unix/Path.inc
+++ b/
lib/System/Unix/Path.inc
@@
-439,7
+439,7
@@
Path::isDirectory() const {
struct stat buf;
if (0 != stat(path.c_str(), &buf))
return false;
- return
buf.st_mode & S_IFDIR
? true : false;
+ return
((buf.st_mode & S_IFMT) == S_IFDIR)
? true : false;
}
bool