X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Funix_capture.c;h=8b1e793413c7faf3f56b96b77c50ffbfca56d8cd;hp=8fb4cba886af80b0b7abed9070add7d78dd1b8b6;hb=af141a23c4d1540b8a64759bb68c7cd7ff054e72;hpb=0b1ef651852d008d61771c3386c2922aeab1f462;ds=sidebyside diff --git a/src/unix_capture.c b/src/unix_capture.c index 8fb4cba8..8b1e7934 100644 --- a/src/unix_capture.c +++ b/src/unix_capture.c @@ -337,10 +337,7 @@ unix_build_dentry_tree_recursive(struct wim_dentry **tree_ret, if (should_exclude_path(full_path + params->capture_root_nchars, full_path_len - params->capture_root_nchars, params->config)) - { - ret = 0; goto out_progress; - } if (params->add_flags & (WIMLIB_ADD_FLAG_DEREFERENCE | WIMLIB_ADD_FLAG_ROOT)) @@ -385,11 +382,9 @@ unix_build_dentry_tree_recursive(struct wim_dentry **tree_ret, inode = tree->d_inode; - if (inode->i_nlink > 1) { - /* Already seen this inode? */ - ret = 0; + /* Already seen this inode? */ + if (inode->i_nlink > 1) goto out_progress; - } #ifdef HAVE_STAT_NANOSECOND_PRECISION inode->i_creation_time = timespec_to_wim_timestamp(stbuf.st_mtim);