diff options
author | наб <[email protected]> | 2021-04-16 17:52:47 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-04-17 12:39:28 -0700 |
commit | bfe8b9fff3888828d92db1baf0c9e5982fd45842 (patch) | |
tree | 2af880fbdd2db58597cab37958530af3eb1b7c67 /lib/libzfs/libzfs_crypto.c | |
parent | 309c32c954122d75eefd484f891bd041bf6cd845 (diff) |
libzfs: don't mark prompt+raw as retriable
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #11911
Closes #11031
Diffstat (limited to 'lib/libzfs/libzfs_crypto.c')
-rw-r--r-- | lib/libzfs/libzfs_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_crypto.c b/lib/libzfs/libzfs_crypto.c index 773fea5cd..5fb93d265 100644 --- a/lib/libzfs/libzfs_crypto.c +++ b/lib/libzfs/libzfs_crypto.c @@ -512,7 +512,7 @@ get_key_material(libzfs_handle_t *hdl, boolean_t do_verify, boolean_t newkey, switch (keyloc) { case ZFS_KEYLOCATION_PROMPT: if (isatty(fileno(stdin))) { - can_retry = B_TRUE; + can_retry = keyformat != ZFS_KEYFORMAT_RAW; ret = get_key_interactive(hdl, fsname, keyformat, do_verify, newkey, &km, &kmlen); } else { |