aboutsummaryrefslogtreecommitdiff
path: root/lib/System/Unix/Path.inc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/System/Unix/Path.inc')
-rw-r--r--lib/System/Unix/Path.inc8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc
index d134aaa79b..8dd76a7412 100644
--- a/lib/System/Unix/Path.inc
+++ b/lib/System/Unix/Path.inc
@@ -457,16 +457,12 @@ bool
Path::isSpecialFile() const {
// Get the status so we can determine if its a file or directory
struct stat buf;
- std::string *ErrStr;
- if (0 != stat(path.c_str(), &buf)) {
- MakeErrMsg(ErrStr, path + ": can't get status of file");
+ if (0 != stat(path.c_str(), &buf))
return true;
- }
- if (S_ISDIR(buf.st_mode) || S_ISREG(buf.st_mode)) {
+ if (S_ISDIR(buf.st_mode) || S_ISREG(buf.st_mode))
return false;
- }
return true;
}