diff options
author | 7heo <7heo@mail.com> | 2016-09-28 00:12:22 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-10 13:50:25 +0100 |
commit | 254c00aa7d6a4cbe8b4a0cb02fc2699d72a13cda (patch) | |
tree | 406bbe94ad929a7806c9e7b48301cc0b360da204 | |
parent | ee68c18cd617d58a3ec4bbfb0c821855e279a09b (diff) | |
download | mkinitfs-254c00aa7d6a4cbe8b4a0cb02fc2699d72a13cda.tar.bz2 mkinitfs-254c00aa7d6a4cbe8b4a0cb02fc2699d72a13cda.tar.xz |
nlplug-findfs: Better messages
-rw-r--r-- | nlplug-findfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nlplug-findfs.c b/nlplug-findfs.c index 3f6680d..f4fed71 100644 --- a/nlplug-findfs.c +++ b/nlplug-findfs.c @@ -585,9 +585,10 @@ static void *cryptsetup_thread(void *data) pthread_mutex_unlock(&c->cryptsetup_mutex); if (r >= 0) - break; + goto free_out; printf("No key available with this passphrase.\n"); } + printf("Mounting %s failed, amount of tries exhausted.\n", c->crypt.devnode); free_out: crypt_free(cd); |