mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-19 22:04:07 -04:00
comment
This commit is contained in:
parent
35c4fce61b
commit
6876a2eaa8
1 changed files with 3 additions and 2 deletions
|
@ -116,10 +116,11 @@ set_file_perms() {
|
||||||
|
|
||||||
## Use dpkg-statoverride so permissions are not reset during upgrades.
|
## Use dpkg-statoverride so permissions are not reset during upgrades.
|
||||||
|
|
||||||
|
## Check there is an entry for the fso.
|
||||||
if dpkg-statoverride --list | grep -q "$fso_without_trailing_slash"; then
|
if dpkg-statoverride --list | grep -q "$fso_without_trailing_slash"; then
|
||||||
## If there is an entry for the fso, but the owner/group/mode do not
|
## There is an fso entry. Check if owner/group/mode match.
|
||||||
## 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
|
||||||
|
## The owner/group/mode do not match, therefore remove and re-add the entry to update it.
|
||||||
## fso_without_trailing_slash instead of fso to prevent
|
## fso_without_trailing_slash instead of fso to prevent
|
||||||
## "dpkg-statoverride: warning: stripping trailing /"
|
## "dpkg-statoverride: warning: stripping trailing /"
|
||||||
echo_wrapper dpkg-statoverride --remove "$fso_without_trailing_slash"
|
echo_wrapper dpkg-statoverride --remove "$fso_without_trailing_slash"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue