aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-28 23:22:01 +0000
committerDan Gohman <gohman@apple.com>2009-07-28 23:22:01 +0000
commit979c9d3a50c87124f646618c18eaba6c386019e3 (patch)
tree0661c38692f18e2837f636ac8d77b7f7f2db5e9f /lib/System/Unix
parent25c070525d717d04970eecbb01db0c3fcd4897fb (diff)
downloadexternal_llvm-979c9d3a50c87124f646618c18eaba6c386019e3.zip
external_llvm-979c9d3a50c87124f646618c18eaba6c386019e3.tar.gz
external_llvm-979c9d3a50c87124f646618c18eaba6c386019e3.tar.bz2
It isn't necessary to use F_OK when using R_OK or similar.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
-rw-r--r--lib/System/Unix/Path.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc
index e951fa0..27765c8 100644
--- 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