mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
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:
parent
4f65b0fc1e
commit
01dd567f8b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user