mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-31 14:54:20 -04:00
exit non-zero if capability removal failed
This commit is contained in:
parent
3670fcf48b
commit
fef1469fe6
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue