[Bug 11671] New: --files-from= with nonexistant files and --delete-missing-args complains about vanished source files

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 11671] New: --files-from= with nonexistant files and --delete-missing-args complains about vanished source files

samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=11671

            Bug ID: 11671
           Summary: --files-from= with nonexistant files and
                    --delete-missing-args complains about vanished source
                    files
           Product: rsync
           Version: 3.1.1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: core
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

Problem:

rsync seems to indicate that files have disappeared during the transfer when
this is not the case.

Steps to reproduce:

1. Create files.txt with "foo/bar". (Make sure "foo/" doesn't exist.)

2. Run: rsync --delete-missing-args -v --files-from=files.txt . remote-host:

Output:

building file list ...
file has vanished: "/home/vegard/foo"
done
default_perms_for_dir: sys_acl_get_file(foo, ACL_TYPE_DEFAULT): No such file or
directory, falling back on umask

sent 30 bytes  received 129 bytes  45.43 bytes/sec
total size is 0  speedup is 0.00
rsync warning: some files vanished before they could be transferred (code 24)
at main.c(1183) [sender=3.1.0]

Expected behaviour:

With --delete-missing-args I would expect nonexistant files (and files in
nonexistant directories) to be deleted on the remote host without any warnings
or error codes.

Workaround:

Check for exit code 24 and ignore it. (But this has the drawback of potentially
ignoring warnings about files which really did disappear after rsync had been
started.)

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