aboutsummaryrefslogtreecommitdiff
path: root/cli-tests/t_change_passphrase.sh
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2022-01-18 21:03:51 -0800
committerGitHub <noreply@github.com>2022-01-18 21:03:51 -0800
commit7813af71eba05166e0c2f7056e094ca8756fbe8e (patch)
tree35560cae2edcc7ad7206412c2df9d98b2eef6a65 /cli-tests/t_change_passphrase.sh
parent6ec8ee00398c435aba7cbb68f8246c1772e12908 (diff)
parent6ebd5a54eae2dfb16b66da649e75848fe6030b7f (diff)
Merge pull request #338 from google/remove-protector-from-policy
cmd/fscrypt: don't load protector in remove-protector-from-policy
Diffstat (limited to 'cli-tests/t_change_passphrase.sh')
-rwxr-xr-xcli-tests/t_change_passphrase.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-tests/t_change_passphrase.sh b/cli-tests/t_change_passphrase.sh
index 204512d..1360bc2 100755
--- a/cli-tests/t_change_passphrase.sh
+++ b/cli-tests/t_change_passphrase.sh
@@ -14,7 +14,7 @@ echo pass1 | fscrypt encrypt --quiet --name=prot --skip-unlock "$dir"
_print_header "Try to unlock with wrong passphrase"
_expect_failure "echo pass2 | fscrypt unlock --quiet '$dir'"
_expect_failure "mkdir '$dir/subdir'"
-protector=$(fscrypt status "$dir" | awk '/custom protector/{print $1}')
+protector=$(_get_protector_descriptor "$dir" custom prot)
_print_header "Change passphrase"
echo $'pass1\npass2' | \