From 721ffda11bf98fdf64085acbf8525cb55c94c802 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 26 Apr 2014 22:50:04 -0500 Subject: [PATCH] unix_capture.c: Force directories to separate inodes Freeing the dentry tree goes horribly wrong if there are directory hard links, so don't allow creating them. --- src/unix_capture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unix_capture.c b/src/unix_capture.c index dd79b658..9283df51 100644 --- a/src/unix_capture.c +++ b/src/unix_capture.c @@ -244,7 +244,8 @@ unix_build_dentry_tree_recursive(struct wim_dentry **root_ret, ret = inode_table_new_dentry(¶ms->inode_table, path_basename_with_len(path, path_len), - stbuf.st_ino, stbuf.st_dev, false, &root); + stbuf.st_ino, stbuf.st_dev, + S_ISDIR(stbuf.st_mode), &root); if (ret) goto out; -- 2.43.0