mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-09 22:57:53 +07:00
exit non-zero if capability removal failed
This commit is contained in:
parent
3670fcf48b
commit
fef1469fe6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user