aboutsummaryrefslogtreecommitdiffstats
path: root/nlplug-findfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'nlplug-findfs.c')
-rw-r--r--nlplug-findfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nlplug-findfs.c b/nlplug-findfs.c
index acd8955..cccc359 100644
--- a/nlplug-findfs.c
+++ b/nlplug-findfs.c
@@ -713,7 +713,8 @@ static int dispatch_uevent(struct uevent *ev, struct ueventconf *conf)
return rc;
if (searchdev(ev, conf->crypt_device, NULL, NULL)) {
- strncpy(conf->crypt_devnode, ev->devnode,
+ strncpy(conf->crypt_devnode,
+ conf->crypt_device[0] == '/' ? conf->crypt_device : ev->devnode,
sizeof(conf->crypt_devnode));
start_cryptsetup(conf);
}