From dd723f863de2b87013cba69e63d84be1a2a544e2 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 13 Oct 2019 03:36:57 -0500 Subject: hscript: Device, not mountpoint, shall be present --- hscript/disk.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hscript/disk.cc') diff --git a/hscript/disk.cc b/hscript/disk.cc index 217dbcb..d30778d 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->mountpoint().c_str(), F_OK)); + return(access(this->device().c_str(), F_OK)); } bool Mount::execute(ScriptOptions) const { -- cgit v1.2.3-60-g2f50