From: Eric Biggers Date: Sun, 27 Apr 2014 03:50:04 +0000 (-0500) Subject: unix_capture.c: Force directories to separate inodes X-Git-Tag: v1.7.0~261 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=721ffda11bf98fdf64085acbf8525cb55c94c802 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. --- 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;