X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/23f4587f2b71f9ebb135d714a14e551ea494c8f9..4ce838e1f107239f1b18f3f8cd7c7fbab65e0bd5:/flist.c diff --git a/flist.c b/flist.c index 0bd653ff..1b021ef6 100644 --- a/flist.c +++ b/flist.c @@ -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: