cs/fix
This commit is contained in:
parent
715708dc3d
commit
a7219cf7fa
1 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ rwx_crypt() {
|
|||
rwx_log_error 6 "Closing failure: ${crypt_arg}"
|
||||
fi
|
||||
# load device
|
||||
if ! device="$(cat "${RWX_CRYPT_ROOT}/${crypt_arg}")"; then
|
||||
if ! device="$(cat "${RWX_CRYPT_VAR}/${crypt_arg}")"; then
|
||||
rwx_log_error 7 "Loading failure: ${crypt_arg}"
|
||||
fi
|
||||
# disconnect device
|
||||
|
@ -107,7 +107,7 @@ rwx_crypt() {
|
|||
rwx_log_error 8 "Disconnection failure: ${device}"
|
||||
fi
|
||||
# remove record
|
||||
if ! rm "${RWX_CRYPT_ROOT}/${crypt_arg}"; then
|
||||
if ! rm "${RWX_CRYPT_VAR}/${crypt_arg}"; then
|
||||
rwx_log_error 9 "Removal failure: ${crypt_arg}"
|
||||
fi
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue