readlink_stat() on an excluded file can be a problem when using the
--copy-links option (also known as -L) and the excluded file is a symlink
that points nowhere.
}
fname = cleaned_name;
+ /* f is set to -1 when calculating deletion file list */
+ if (((f != -1) || !delete_excluded) && !noexcludes && !match_file_name(fname,&st))
+ return NULL;
+
+
memset(sum,0,SUM_LENGTH);
if (readlink_stat(fname,&st,linkbuf) != 0) {
return NULL;
}
- /* f is set to -1 when calculating deletion file list */
- if (((f != -1) || !delete_excluded) && !match_file_name(fname,&st))
- return NULL;
-
if (lp_ignore_nonreadable(module_id) && access(fname, R_OK) != 0)
return NULL;