This commit is contained in:
Patrick Schleizer 2019-12-20 10:47:23 -05:00
parent b3458cc6ee
commit 79cd3b86b6
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -206,6 +206,12 @@ set_file_perms() {
fi
## Check there is an entry for the fso.
##
## example: dpkg-statoverride --list | grep /home
## output:
## root root 755 /home
##
## dpkg-statoverride does not show leading '0'.
if dpkg-statoverride --list | grep -q "$fso_without_trailing_slash"; then
## There is an fso entry. Check if owner/group/mode match.
if dpkg-statoverride --list | grep -q "$owner $group $mode_for_grep $fso_without_trailing_slash"; then