mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-02 22:14:50 -04:00
fix "dpkg-statoverride: warning: stripping trailing /"
This commit is contained in:
parent
9bd9012ab1
commit
35c4fce61b
1 changed files with 3 additions and 1 deletions
|
@ -120,7 +120,9 @@ set_file_perms() {
|
|||
## 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.
|
||||
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
|
||||
fi
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue