DO NOT REPLY [Bug 3542] New: "rsync --list-only a b/" tries to create b

samba-bugs at samba.org samba-bugs at samba.org
Wed Feb 22 23:31:18 GMT 2006


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

           Summary: "rsync --list-only a b/" tries to create b
           Product: rsync
           Version: 2.6.7
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: hashproduct at verizon.net
         QAContact: rsync-qa at samba.org


Rsync's --list-only option requires a destination, which is strange because the
destination isn't used for anything.  Nevertheless, in get_local_name, rsync
ensures that the destination is usable, which may involve trying to create the
destination as a directory.  Luckily, if rsync tries to create the directory,
the attempt is caught in do_mkdir and an error message results, but rsync
really shouldn't care about the destination at all.

The patch I will soon attach causes get_local_name to return NULL immediately
if --list-only is given.  However, there has to be a better way to ensure the
destination is not touched in this situation.

Separately, it would be an improvement if the destination argument could be
omitted when --list-only is given.  (Until I read the man page, I kept trying
to run "rsync --list-only source/" and wondered why I got a usage error.)


-- 
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.


More information about the rsync mailing list