Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiggers committed Nov 7, 2020
1 parent 438564b commit 58afcdc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli-tests/t_change_passphrase.out
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ mkdir: cannot create directory 'MNT/dir/subdir': Required key not available

# Unlock with new passphrase

# Debug
/dev/pts/0
spawn readlink /proc/self/fd/0
/dev/pts/1

# Try to change passphrase (interactively, mismatch)
spawn fscrypt metadata change-passphrase --protector=MNT:desc1
Enter old custom passphrase for protector "prot":
Expand Down
7 changes: 7 additions & 0 deletions cli-tests/t_change_passphrase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ echo pass2 | fscrypt unlock --quiet "$dir"
mkdir "$dir/subdir"
rmdir "$dir/subdir"

_print_header "Debug"
readlink /proc/self/fd/0
expect << EOF
spawn readlink /proc/self/fd/0
expect eof
EOF

_print_header "Try to change passphrase (interactively, mismatch)"
expect << EOF
spawn fscrypt metadata change-passphrase --protector=$MNT:$protector
Expand Down

0 comments on commit 58afcdc

Please sign in to comment.