exit non-zero if capability removal failed

This commit is contained in:
Patrick Schleizer 2019-12-23 00:51:14 -05:00
parent 3670fcf48b
commit fef1469fe6
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -394,6 +394,7 @@ set_file_perms() {
echo_wrapper_ignore setcap -r "$fso"
getcap_output="$(getcap "$fso")"
if [ ! "$getcap_output" = "" ]; then
exit_code=205
echo "ERROR: removing capabilities for fso '$fso' failed!" >&2
continue
fi