samba-bugs@samba.org
2004-Oct-13 16:20 UTC
[Bug 1924] unable to rsync between a PC with cygwin and a unix machine using rsh
https://bugzilla.samba.org/show_bug.cgi?id=1924 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Additional Comments From wayned@samba.org 2004-10-13 09:09 ------- This is a bug in cygwin's rsh program that they should fix. When they changed their getopt library to one that does command-line reordering, the same problem showed up for ssh, and I managed to talk them into fixing it. You should request that the same change be made to cygwin's rsh. Work arounds are: - Specify --rsh="rsh --" option to rsync (this should work if they fixed the bug in how the -- option is parsed that was present back when ssh was similarly broken). - Export POSIXLY_CORRECT in your environment. This will prevent all commands from reordering their command-line arguments and affects other program aspects, so this is probably not a good way to go. - Create a shell script that exports POSIXLY_CORRECT and then execs the real rsh with the supplied command-line args. Rename the rsh program and name the new shell script "rsh". This fixes rsh for everyone on your system. Also, please do not put large amounts of patch data in the comments -- that's what attachments are for. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2004-Oct-13 16:41 UTC
[Bug 1924] unable to rsync between a PC with cygwin and a unix machine using rsh
https://bugzilla.samba.org/show_bug.cgi?id=1924 ------- Additional Comments From wayned@samba.org 2004-10-13 09:23 ------- I just tried running rsh on the latest cygwin, and it is not reordering the command-line arguments, so it appears that the cygwin folks have already fixed this problem. Note also that rsh doesn't accept the "--" argument, so that suggestion from my previous comment doesn't work. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
Hi All, I have the following rsync command: /usr/bin/rsync -av /data/html/interactives/delta_interactive.swf /mnt/cf/data/html/interactives/delta_interactive.swf The directory /mnt/cf/ exists but data/html/interactives does not exist. I want this directory to be created when the file is attempted to be rsynced. Can this be done. Cheers Jason
On Thu, Oct 21, 2004 at 01:57:39PM +0800, Jason Potter wrote:> The directory /mnt/cf/ exists but data/html/interactives does not exist. I > want this directory to be created when the file is attempted to be rsynced./usr/bin/rsync -avR /data/html/interactives/delta_interactive.swf /mnt/cf That will do what you want (note the -R). ..wayne..
Apparently Analagous Threads
- [Bug 1924] New: unable to rsync between a PC with cygwin and a unix machine using rsh
- rsync rsh XP->Unix Terminal Read cygwin
- rsync 2.6.2 doesn't work with GNU inetutils rsh
- configure --with-rsh=CMD and default blocking-IO support
- rsh issue/update (access denied)...