projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
265d82e
)
It isn't necessary to use F_OK when using R_OK or similar.
author
Dan Gohman
<gohman@apple.com>
Tue, 28 Jul 2009 23:22:01 +0000
(23:22 +0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 28 Jul 2009 23:22:01 +0000
(23:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77392
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Unix/Path.inc
patch
|
blob
|
history
diff --git
a/lib/System/Unix/Path.inc
b/lib/System/Unix/Path.inc
index e951fa0355768f36056c5af02d1e5c2bde744b87..27765c8b6aae650f7b547342df77bf0b7567edb6 100644
(file)
--- a/
lib/System/Unix/Path.inc
+++ b/
lib/System/Unix/Path.inc
@@
-431,12
+431,12
@@
Path::isDirectory() const {
bool
Path::canRead() const {
- return 0 == access(path.c_str(),
F_OK | R_OK
);
+ return 0 == access(path.c_str(),
R_OK
);
}
bool
Path::canWrite() const {
- return 0 == access(path.c_str(),
F_OK | W_OK
);
+ return 0 == access(path.c_str(),
W_OK
);
}
bool