fix "dpkg-statoverride: warning: stripping trailing /"

This commit is contained in:
Patrick Schleizer 2019-12-20 03:54:46 -05:00
parent 9bd9012ab1
commit 35c4fce61b
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -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