summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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;
}