aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-11-21 20:04:46 +0200
committerTimo Teräs <timo.teras@iki.fi>2016-11-21 20:05:29 +0200
commit81678aa59d3acf066b91245cf281cd1f66be8531 (patch)
treeb497129957514bca0d0af86a0dc6656ffbe4fb6f
parentca9c1938ca136ebd5f341f9fb01b822905f41906 (diff)
downloadmkinitfs-81678aa59d3acf066b91245cf281cd1f66be8531.tar.bz2
mkinitfs-81678aa59d3acf066b91245cf281cd1f66be8531.tar.xz
nlplug-findfs: accept passphrase of non-zero slots
ref #6473
-rw-r--r--nlplug-findfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nlplug-findfs.c b/nlplug-findfs.c
index 78a5ebe..b0281a0 100644
--- a/nlplug-findfs.c
+++ b/nlplug-findfs.c
@@ -411,7 +411,7 @@ static void *cryptsetup_thread(void *data)
pass, strlen(pass), 0);
pthread_mutex_unlock(&c->cryptsetup_mutex);
- if (r == 0)
+ if (r >= 0)
break;
printf("No key available with this passphrase.\n");
}