DO NOT REPLY [Bug 3935] New: replacing a full directory with symlink with --delete-after produces cryptic message

samba-bugs at samba-bugs at
Fri Jul 14 15:24:04 GMT 2006

           Summary: replacing a full directory with symlink with --delete-
                    after produces cryptic message
           Product: rsync
           Version: 2.6.6
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at
        ReportedBy: bugs.samba at
         QAContact: rsync-qa at

What Happned:
   On the source, a directory with files is changed to a symlink.
   rysnc -ra --delete-after will then generate the following message:
   rsync: delete_file: rmdir "/tmp/rsync.bug.11080/dest/somedir" failed:
Directory not empty (39)
   rsync error: some files could not be transferred (code 23) at

What I Expected:
   I expected the directory to be replaced with a symlink (like
   --delete would have done)
   I expected the directory to be deleted at the end (because of
   --delete-after) but the symlink not to be sync'ed.  I would expect
   it to still raise an error, but the next run would fix it (since
   the directory is done).
   I expected the error message to explain how I could fix this

I can see why it would fail during the sync phase, but the delete
phase should have deleted it after the syncing part, since no IO
errors were detected on the sending side.

I have attached a simple script to generate this error on command.


Configure bugmail:
------- 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