Commit 132fcf36 authored by Wayne Davison's avatar Wayne Davison

The "ignore nonreadable" daemon parameter no longer affects

symlinks that are being copied, even if they point nowhere.
parent 4571df58
......@@ -819,8 +819,13 @@ struct file_struct *make_file(char *fname, struct file_list *flist,
if (check_exclude_file(thisname, S_ISDIR(st.st_mode) != 0, exclude_level))
return NULL;
if (lp_ignore_nonreadable(module_id) && access(thisname, R_OK) != 0)
return NULL;
if (lp_ignore_nonreadable(module_id)) {
#if SUPPORT_LINKS
if (!S_ISLNK(st.st_mode))
#endif
if (access(thisname, R_OK) != 0)
return NULL;
}
skip_excludes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment