mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-03-10 12:53:31 +07:00
fix "dpkg-statoverride: warning: stripping trailing /"
This commit is contained in:
parent
9bd9012ab1
commit
35c4fce61b
@ -120,7 +120,9 @@ set_file_perms() {
|
|||||||
## If there is an entry for the fso, but the owner/group/mode do not
|
## If there is an entry for the fso, but the owner/group/mode do not
|
||||||
## match, we remove and re-add the entry to update it.
|
## match, we remove and re-add the entry to update it.
|
||||||
if ! dpkg-statoverride --list | grep -q "$owner $group $mode_from_config $fso_without_trailing_slash"; then
|
if ! dpkg-statoverride --list | grep -q "$owner $group $mode_from_config $fso_without_trailing_slash"; then
|
||||||
echo_wrapper dpkg-statoverride --remove "$fso"
|
## fso_without_trailing_slash instead of fso to prevent
|
||||||
|
## "dpkg-statoverride: warning: stripping trailing /"
|
||||||
|
echo_wrapper dpkg-statoverride --remove "$fso_without_trailing_slash"
|
||||||
add_statoverride_entry
|
add_statoverride_entry
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user