diff options
Diffstat (limited to 'lib/System/Path.cpp')
-rw-r--r-- | lib/System/Path.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp index 34cbd6d69b..d2566fd06a 100644 --- a/lib/System/Path.cpp +++ b/lib/System/Path.cpp @@ -62,14 +62,14 @@ sys::IdentifyFileType(const char*magic, unsigned length) { bool Path::isArchive() const { - if (readable()) + if (canRead()) return hasMagicNumber("!<arch>\012"); return false; } bool Path::isDynamicLibrary() const { - if (readable()) + if (canRead()) return hasMagicNumber("\177ELF"); return false; } |