infra: accept any symlinks for later network transfer

This commit is contained in:
Thomas Schoebel-Theuer 2020-09-17 11:43:29 +02:00 committed by Thomas Schoebel-Theuer
parent e77f856d86
commit c48cb7580d

View File

@ -1534,7 +1534,13 @@ int mars_filler(void *__buf, const char *name, int namlen, loff_t offset,
&prefix,
&serial,
&use_channel);
if (class < 0)
/* For some_ordered network transfers, always
* accept symlinks.
*/
if (class < 0 &&
(!cookie->some_ordered ||
d_type != DT_LNK))
return 0;
pathlen = strlen(cookie->path);