Fwd: rsync on z/OS

2022-09-07 Thread Mike Fulton via rsync
Hi, I am trying to enable rsync on the z/OS operating system. One problem is that in rsync.h, the 'mode' field of 'struct file_struct' is uint16, but on z/OS, mode_t is 32 bits, not 16, and so information gets lost. A bigger problem is that the bits behind the definition of S_ISREG on z/OS: #defi

Patch: disable path sanitization for modules rooted at "/"

2022-09-07 Thread Thor Simon via rsync
When running in daemon mode with a module rooted at "/", it is not possible to "escape" the module. Not by prefixing a link target with "../../../../../../..". Not by prefixing a link target with "/" nor "". So it seems to me that path sanitization is not useful in this case. And it breaks