libzfs: don't mark prompt+raw as retriable
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #11911 Closes #11031
This commit is contained in:
parent
edf3d7aa43
commit
1d65d1a597
|
@ -518,7 +518,7 @@ get_key_material(libzfs_handle_t *hdl, boolean_t do_verify, boolean_t newkey,
|
||||||
switch (keyloc) {
|
switch (keyloc) {
|
||||||
case ZFS_KEYLOCATION_PROMPT:
|
case ZFS_KEYLOCATION_PROMPT:
|
||||||
if (isatty(fileno(stdin))) {
|
if (isatty(fileno(stdin))) {
|
||||||
can_retry = B_TRUE;
|
can_retry = keyformat != ZFS_KEYFORMAT_RAW;
|
||||||
ret = get_key_interactive(hdl, fsname, keyformat,
|
ret = get_key_interactive(hdl, fsname, keyformat,
|
||||||
do_verify, newkey, &km, &kmlen);
|
do_verify, newkey, &km, &kmlen);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue