From 14361e7589675a8032485780173e1cc71de2132f Mon Sep 17 00:00:00 2001 From: 7heo <7heo@mail.com> Date: Sat, 17 Sep 2016 14:42:53 +0200 Subject: nlplug-findfs: fix erratic behavior and SIGSEGV Likely introduced in the major rehaul done in e4af128b30855b2b29a27c2fd7580b62059bbe51 --- nlplug-findfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nlplug-findfs.c') diff --git a/nlplug-findfs.c b/nlplug-findfs.c index df62651..78a5ebe 100644 --- a/nlplug-findfs.c +++ b/nlplug-findfs.c @@ -727,7 +727,7 @@ static int dispatch_uevent(struct uevent *ev, struct ueventconf *conf) if (rc) return rc; - if (searchdev(ev, conf->crypt.device, NULL, NULL)) { + if (conf->crypt.devnode[0] == '\0' && searchdev(ev, conf->crypt.device, NULL, NULL)) { strncpy(conf->crypt.devnode, conf->crypt.device[0] == '/' ? conf->crypt.device : ev->devnode, sizeof(conf->crypt.devnode)); -- cgit v1.2.3