[Bug 8838] New: rsync daemon chooses wrong destination place if space and the module name is part of it

samba-bugs at samba.org samba-bugs at samba.org
Mon Apr 2 08:46:41 MDT 2012


https://bugzilla.samba.org/show_bug.cgi?id=8838

           Summary: rsync daemon chooses wrong destination place if space
                    and the module name is part of it
           Product: rsync
           Version: 3.1.0
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: mluscon at redhat.com
         QAContact: rsync-qa at samba.org


Created attachment 7417
  --> https://bugzilla.samba.org/attachment.cgi?id=7417
proposed patch

This bug originally comes from
https://bugzilla.redhat.com/show_bug.cgi?id=743598

Description of problem:
rsync daemon chooses wrong destination place for source paths containing space
and the module name.

Version-Release number of selected component (if applicable):
Latest upstream version is also having this bug.

How reproducible:
Every time.


Steps to Reproduce:

1. Create directory /tmp/foo.
2. Create a minimal rsyncd.conf, e.g.
"""
use chroot = false
uid = devtest
[foo]
path = /tmp/foo
read only = false
"""
3. Start rsyncd with "sudo rsync --daemon --no-detach --config=rsyncd.conf".
4. Module name (in this case "foo") should appear after the space in
destination path. 
 - mkdir -p '/tmp/foo/c foo'
 - rsync '/etc/issue' 'rsync://blade36/foo/c foo/issue'

5. Notice that the file will end up in '/tmp/foo/c' instead of '/tmp/foo/c
foo/issue'


Actual results:
File is getting created as '/tmp/foo/c' instead of '/tmp/foo/c foo/issue'.


Expected results:
File should be created at location '/tmp/foo/c foo/issue' instead of
'/tmp/foo/c'.

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the rsync mailing list