ref: 14361e7589675a8032485780173e1cc71de2132f
parent: 4893f510f80d26f4cc5321381084904109c1cbe9
author: 7heo <7heo@mail.com>
date: Sat Sep 17 09:42:53 CDT 2016
nlplug-findfs: fix erratic behavior and SIGSEGV Likely introduced in the major rehaul done in e4af128b30855b2b29a27c2fd7580b62059bbe51
--- a/nlplug-findfs.c
+++ b/nlplug-findfs.c
@@ -727,7 +727,7 @@
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));