From 5e18393c2b2964c69054509747f09435006ae825 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 22 Jun 2019 00:06:47 +0200 Subject: fix: actually update permissions in fstree add by path When creating a directory that has previously been created implicitly, actually update the permissions as the documentation says. Signed-off-by: David Oberhollenzer --- lib/fstree/add_by_path.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/fstree') diff --git a/lib/fstree/add_by_path.c b/lib/fstree/add_by_path.c index 2cd3b4a..eaa0925 100644 --- a/lib/fstree/add_by_path.c +++ b/lib/fstree/add_by_path.c @@ -74,6 +74,9 @@ tree_node_t *fstree_add_generic(fstree_t *fs, const char *path, return NULL; } + child->uid = sb->st_uid; + child->gid = sb->st_gid; + child->mode = sb->st_mode; child->data.dir->created_implicitly = false; return child; } -- cgit v1.2.3