X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Funix_capture.c;h=a080e8cb074cd1ac419c312ab991ef68ab7c51b9;hp=906920a86144dc9549b58975e694691d6c8563ee;hb=9db1bdc721081a2dead6a60cba77dfb9bdad5ceb;hpb=04dcfc0042a286557e6a0cf358793538d6500379 diff --git a/src/unix_capture.c b/src/unix_capture.c index 906920a8..a080e8cb 100644 --- a/src/unix_capture.c +++ b/src/unix_capture.c @@ -210,7 +210,7 @@ unix_build_dentry_tree_recursive(struct wim_dentry **root_ret, { union wimlib_progress_info info; info.scan.cur_path = path; - info.scan.excluded = true; + info.scan.status = WIMLIB_SCAN_DENTRY_EXCLUDED; params->progress_func(WIMLIB_PROGRESS_MSG_SCAN_DENTRY, &info); } goto out; @@ -221,7 +221,7 @@ unix_build_dentry_tree_recursive(struct wim_dentry **root_ret, { union wimlib_progress_info info; info.scan.cur_path = path; - info.scan.excluded = false; + info.scan.status = WIMLIB_SCAN_DENTRY_OK; params->progress_func(WIMLIB_PROGRESS_MSG_SCAN_DENTRY, &info); } @@ -241,9 +241,14 @@ unix_build_dentry_tree_recursive(struct wim_dentry **root_ret, } if (!S_ISREG(stbuf.st_mode) && !S_ISDIR(stbuf.st_mode) && !S_ISLNK(stbuf.st_mode)) { - ERROR("`%s' is not a regular file, directory, or symbolic link.", - path); - ret = WIMLIB_ERR_SPECIAL_FILE; + if ((params->add_flags & WIMLIB_ADD_FLAG_EXCLUDE_VERBOSE) + && params->progress_func) + { + union wimlib_progress_info info; + info.scan.cur_path = path; + info.scan.status = WIMLIB_SCAN_DENTRY_UNSUPPORTED; + params->progress_func(WIMLIB_PROGRESS_MSG_SCAN_DENTRY, &info); + } goto out; }