mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-03-01 18:21:09 -05:00
refactoring
This commit is contained in:
parent
b92a690c16
commit
9e493a9f48
@ -89,6 +89,8 @@ set_file_perms() {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
fso_without_trailing_slash="${fso%/}"
|
||||||
|
|
||||||
nosuid=""
|
nosuid=""
|
||||||
if [ "$mode_from_config" = "nosuid" ]; then
|
if [ "$mode_from_config" = "nosuid" ]; then
|
||||||
nosuid="true"
|
nosuid="true"
|
||||||
@ -114,8 +116,6 @@ set_file_perms() {
|
|||||||
|
|
||||||
## Use dpkg-statoverride so permissions are not reset during upgrades.
|
## Use dpkg-statoverride so permissions are not reset during upgrades.
|
||||||
|
|
||||||
fso_without_trailing_slash="${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
|
## 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.
|
## match, we remove and re-add the entry to update it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user