summaryrefslogtreecommitdiff
path: root/hscript/disk.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-13 03:36:57 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-13 03:36:57 -0500
commitdd723f863de2b87013cba69e63d84be1a2a544e2 (patch)
tree8a1276bc59526d2b8b9a4266381af0af505d4e27 /hscript/disk.cc
parenta36a55c3605bb89125d9d1819a9c32590008ea8f (diff)
downloadhorizon-dd723f863de2b87013cba69e63d84be1a2a544e2.tar.gz
horizon-dd723f863de2b87013cba69e63d84be1a2a544e2.tar.bz2
horizon-dd723f863de2b87013cba69e63d84be1a2a544e2.tar.xz
horizon-dd723f863de2b87013cba69e63d84be1a2a544e2.zip
hscript: Device, not mountpoint, shall be present
Diffstat (limited to 'hscript/disk.cc')
-rw-r--r--hscript/disk.cc2
1 files changed, 1 insertions, 1 deletions
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 {