summaryrefslogtreecommitdiff
path: root/src/audit.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-06-01 11:21:46 +0300
committerTimo Teräs <timo.teras@iki.fi>2015-06-01 11:22:58 +0300
commit37b65f1c010bb98934448c726e26c64584d98e28 (patch)
tree01cc61a8b3c257055bba0b72b1a8dd2843f231c2 /src/audit.c
parenteef2e02b294c95ad677b317a5360e03a8fb731ba (diff)
downloadapk-tools-37b65f1c010bb98934448c726e26c64584d98e28.tar.gz
apk-tools-37b65f1c010bb98934448c726e26c64584d98e28.tar.bz2
apk-tools-37b65f1c010bb98934448c726e26c64584d98e28.tar.xz
apk-tools-37b65f1c010bb98934448c726e26c64584d98e28.zip
fix directory permissions loading
commit 941fc1b1 uncovered a bug that directory permissions are not updated properly at db load time if it's the default acl.
Diffstat (limited to 'src/audit.c')
-rw-r--r--src/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audit.c b/src/audit.c
index 0e57a61..4312fd7 100644
--- a/src/audit.c
+++ b/src/audit.c
@@ -137,7 +137,7 @@ static int audit_directory(struct audit_ctx *actx,
return actx->recursive ? 'd' : 'D';
if (actx->check_permissions &&
- (dbd->mode != 0 || dbd->uid != 0 || dbd->gid != 0)) {
+ ((dbd->mode & ~S_SEENFLAG) || dbd->uid || dbd->gid)) {
if ((fi->mode & 07777) != (dbd->mode & 07777))
return 'm';
if (fi->uid != dbd->uid || fi->gid != dbd->gid)