ssh_filter_btrbk.sh: return exit status 255 on error

This makes btrbk regard ssh_filter_btrbk errors as ssh errors, as ssh
also returns exit status 255 if an error occurred.
pull/299/head
Axel Burri 2019-08-18 13:49:37 +02:00
parent 4e39ed0fca
commit 6227bb591a
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ reject_and_die()
local reason=$1
log_cmd "auth.err" "btrbk REJECT" "$reason"
echo "ERROR: ssh_filter_btrbk.sh: ssh command rejected: $reason: $SSH_ORIGINAL_COMMAND" 1>&2
exit 1
exit 255
}
run_cmd()
@ -154,7 +154,7 @@ while [[ "$#" -ge 1 ]]; do
*)
echo "ERROR: ssh_filter_btrbk.sh: failed to parse command line option: $key" 1>&2
exit 1
exit 255
;;
esac
shift