Imported Upstream version 1.8.0
[platform/upstream/augeas.git] / src / transform.c
index 1f80134..5423ba1 100644 (file)
@@ -540,6 +540,7 @@ static void tree_freplace(struct augeas *aug, const char *fpath,
     parent = tree_fpath_cr(aug, fpath);
     ERR_RET(aug);
 
+    parent->file = true;
     tree_unlink_children(aug, parent);
     list_append(parent->children, sub);
     list_for_each(s, sub) {