diff options
author | David Zeuthen <davidz@redhat.com> | 2011-07-20 10:16:17 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2011-07-20 10:16:17 -0400 |
commit | 23212d0d01604ceffe8973734118ca8f8220d7f7 (patch) | |
tree | 653c7fbb50b3129efdcef1f0d84dfd8809645827 | |
parent | de651c51e0f0c9f23e57928ba70364e32fb0bf41 (diff) |
udisksctl: Don't ask for passphrase when locking
Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r-- | tools/udisksctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/udisksctl.c b/tools/udisksctl.c index ffc916a..be5885d 100644 --- a/tools/udisksctl.c +++ b/tools/udisksctl.c @@ -1241,7 +1241,8 @@ handle_command_unlock_lock (gint *argc, options = g_variant_builder_end (&builder); g_variant_ref_sink (options); - passphrase = read_passphrase (); + if (is_unlock) + passphrase = read_passphrase (); try_again: if (is_unlock) |