fix, if fso has exactly the mode we want (not 3 instead of 4 string length), not need to reset it

This commit is contained in:
Patrick Schleizer 2019-12-20 03:16:43 -05:00
parent 4f65b0fc1e
commit 01dd567f8b
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -114,7 +114,7 @@ set_file_perms() {
if dpkg-statoverride --list | grep -q "${fso%/}"; then
## 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:1} ${fso%/}"; then
if ! dpkg-statoverride --list | grep -q "$owner $group $mode_from_config ${fso%/}"; then
echo_wrapper dpkg-statoverride --remove "${fso}"
add_statoverride_entry
fi