Re: [PATCH] Don't strip two leading slashes from paths.

2008-11-15 Thread Wayne Davison
On Sat, Nov 15, 2008 at 01:09:20PM -0800, David Rothenberger wrote: > Does this patch (or a modified version that conforms to POSIX) stand a > chance of being accepted? There's a problem with including this in the mainstream version: if we don't turn //some/path into /some/path, it won't match a

Re: [PATCH] Don't strip two leading slashes from paths.

2008-11-15 Thread Wayne Davison
On Sat, Nov 15, 2008 at 01:09:20PM -0800, David Rothenberger wrote: > Unfortunately, it doesn't fully conform to the POSIX specification because > it also translates '///' to '//' instead of '/' as required. An easy fix for that is to change your newly added "if" to this: if (*f

[PATCH] Don't strip two leading slashes from paths.

2008-11-15 Thread David Rothenberger
rsync 3.0.4 will transform a path like '//machine/share/dir' to '/machine/share/dir' when the --protect flag is provided. This causes a problem with Cygwin, where the two leading slashes are meaningful (access of a remote Windows share). [[[ % rsync -s localhost://tela/downloads rsync: link_st