summaryrefslogtreecommitdiff
path: root/lib/device/dev-luks.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/device/dev-luks.c')
-rw-r--r--lib/device/dev-luks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/device/dev-luks.c b/lib/device/dev-luks.c
index 6337992..10aae30 100644
--- a/lib/device/dev-luks.c
+++ b/lib/device/dev-luks.c
@@ -23,7 +23,7 @@ int dev_is_luks(struct device *dev, uint64_t *signature)
char buf[LUKS_SIGNATURE_SIZE];
int ret = -1;
- if (!dev_open(dev)) {
+ if (!dev_open_readonly(dev)) {
stack;
return -1;
}