aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-22 00:06:47 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-22 00:07:39 +0200
commit5e18393c2b2964c69054509747f09435006ae825 (patch)
tree06fbfb23cc4915e167d52b03cd6588785bc7ff30 /lib
parentbcd172662aaec169765bce7c4029cbf5e1c28441 (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/fstree/add_by_path.c3
1 files changed, 3 insertions, 0 deletions
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;
}