]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
sed: Confirm entered password before initialization.
authorGreg Joyce <gjoyce@linux.ibm.com>
Mon, 19 Feb 2024 22:43:18 +0000 (16:43 -0600)
committerDaniel Wagner <wagi@monom.org>
Tue, 20 Feb 2024 08:16:42 +0000 (09:16 +0100)
Ask for password twice in case there is a typo in entering it.

Signed-off-by: Greg Joyce <gjoyce@linux.ibm.com>
plugins/sed/sedopal_cmd.c

index 649e0b26a053be9dd955a2bce79644cea66353a1..91a049f47f7cecb3344a0aff19911229f0a5009b 100644 (file)
@@ -171,6 +171,7 @@ int sedopal_cmd_initialize(int fd)
        struct opal_user_lr_setup lr_setup = {};
 
        sedopal_ask_key = true;
+       sedopal_ask_new_key = true;
        rc = sedopal_set_key(&key);
        if (rc != 0)
                return rc;