main: store the new mode after chmod

after a successful chmod, store the new mode for the ino.

Closes: https://github.com/containers/fuse-overlayfs/issues/124

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2019-10-02 14:22:13 +02:00
parent 46c0f8e650
commit 163510e592
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

1
main.c
View File

@ -3560,6 +3560,7 @@ ovl_setattr (fuse_req_t req, fuse_ino_t ino, struct stat *attr, int to_set, stru
fuse_reply_err (req, errno);
return;
}
node->ino->mode = attr->st_mode;
}
if (to_set & FUSE_SET_ATTR_SIZE)