diff options
-rw-r--r-- | hscript/disk.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hscript/disk.cc b/hscript/disk.cc index 45b2281..5303ccc 100644 --- a/hscript/disk.cc +++ b/hscript/disk.cc @@ -72,7 +72,7 @@ bool Mount::validate(ScriptOptions options) const { * already exist. However, we must take in to account that block devices * may not yet exist during the script validation phase. This check may * need to happen in Script::validate like the Uniqueness tests. */ - return(access(this->device().c_str(), F_OK)); + return(access(this->device().c_str(), F_OK) == 0); } bool Mount::execute(ScriptOptions options) const { |