diff options
author | Roland Vet <RlndVt@protonmail.com> | 2024-02-22 21:37:37 +0100 |
---|---|---|
committer | Roland Vet <RlndVt@protonmail.com> | 2024-02-23 08:37:23 +0100 |
commit | 817e957697e3ecb2447c50dbe611a5f591aa96b5 (patch) | |
tree | 1d66de62ff4b11843c89b8d7b8018382da584166 /c_src | |
parent | 387e2a01ce76e99948feddc0ac307cbbb1155310 (diff) |
Apply naming convention: passphrase->unlock->key->decrypt->fs
Signed-off-by: Roland Vet <RlndVt@protonmail.com>
Diffstat (limited to 'c_src')
-rw-r--r-- | c_src/cmd_key.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/c_src/cmd_key.c b/c_src/cmd_key.c index d66ac7c5..adb0ac8d 100644 --- a/c_src/cmd_key.c +++ b/c_src/cmd_key.c @@ -18,7 +18,7 @@ static void unlock_usage(void) " -c Check if a device is encrypted\n" " -k (session|user|user_session)\n" " Keyring to add to (default: user)\n" - " -f Keyfile to read from (disables password prompt)\n" + " -f Passphrase file to read from (disables passphrase prompt)\n" " -h Display this help and exit\n" "Report bugs to <linux-bcachefs@vger.kernel.org>"); } @@ -27,7 +27,7 @@ int cmd_unlock(int argc, char *argv[]) { const char *keyring = "user"; bool check = false; - const char *key_file_path = NULL; + const char *passphrase_file_path = NULL; char *passphrase = NULL; int opt; @@ -41,7 +41,7 @@ int cmd_unlock(int argc, char *argv[]) keyring = strdup(optarg); break; case 'f': - key_file_path = strdup(optarg); + passphrase_file_path = strdup(optarg); break; case 'h': unlock_usage(); @@ -71,8 +71,8 @@ int cmd_unlock(int argc, char *argv[]) if (check) exit(EXIT_SUCCESS); - if (key_file_path){ - passphrase = read_file_str(AT_FDCWD, key_file_path); + if (passphrase_file_path){ + passphrase = read_file_str(AT_FDCWD, passphrase_file_path); } else { passphrase = read_passphrase("Enter passphrase: "); } |