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: [email protected]
ReportedBy: [email protected]
QAContact: [email protected]
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.
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html