This is the mail archive of the
mailing list for the Cygwin project.
cygwin rsync bug with windows shares
- From: "Sheridan, David" <david dot sheridan at uk dot nomura dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Fri, 28 Feb 2003 15:06:05 -0000
- Subject: cygwin rsync bug with windows shares
I'm using the cygwin version of rsync (2.5.5) and think I've found a bug
which is harmless under unix but fatal to cygwin. The bug is also in the
latest source version I could find (2.5.6).
If I'm trying to take a file from (windows-style) \\share\directory\filename
I would specify something like
rsync //share/directory/filename destination
However, there is special handling in rsync to stop // at the beginning of a
filename, presumably to cope with unix systems which can't understand the
convention. Specifically, in syscall.c, about line 93, in the do_open()
function, the first / is skipped over in this case.
The result of this as I have seen it is that rsync will correctly identify
all files in a directory that need to be copied, but complains that none of
them exist (since do_open() is only relevant to the remote-syncing function,
not directory listing). I can overcome it by saying something like
rsync ///share/directory/filename destination
but that seems a bit silly.
My solution would be to include a cygwin-specific patch for this line,
rather than asking the rsync project to patch their code, but cygwin
developers may disagree.
Please Cc me at the above address in any replies since I don't subscribe to
the list (too high volume for this address I'm afraid).
PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html