This commit is contained in:
Patrick Schleizer 2019-12-23 01:32:42 -05:00
parent ee9c5742da
commit ba30e45d15
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -28,6 +28,11 @@ echo_wrapper_ignore() {
"$@" 2>/dev/null || true
}
echo_wrapper_silent_ignore() {
#echo "run: $@"
"$@" 2>/dev/null || true
}
echo_wrapper_audit() {
echo "run: $@"
return_code=0
@ -190,7 +195,7 @@ add_nosuid_statoverride_entry() {
echo_wrapper_ignore dpkg-statoverride --remove "$file_name"
## Remove from separate database.
echo_wrapper_ignore dpkg-statoverride $dpkg_admindir_parameter_new_mode --remove "$file_name"
echo_wrapper_silent_ignore dpkg-statoverride $dpkg_admindir_parameter_new_mode --remove "$file_name"
## Add to real database and use --update to make changes on disk.
echo_wrapper_audit dpkg-statoverride --add --update "$existing_owner" "$existing_group" "$new_mode" "$file_name"