]> git.ipfire.org Git - thirdparty/rsync.git/commit
flist: accept the missing-args mode-0 entry in recv_file_entry (#910)
authorAndrew Tridgell <andrew@tridgell.net>
Wed, 3 Jun 2026 10:47:56 +0000 (20:47 +1000)
committerAndrew Tridgell <andrew@tridgell.net>
Wed, 3 Jun 2026 21:41:41 +0000 (07:41 +1000)
commitebfb3c0056439df9c11eca8a0fb0db9cd56f2856
tree03426fcc8a8df90b985fcba1cdbf77fde32a5b9b
parente16a001d39628ed9f4be0d58985b552fdfc9a86a
flist: accept the missing-args mode-0 entry in recv_file_entry (#910)

--delete-missing-args (missing_args==2) sends a missing --files-from arg as a
mode-0 entry (IS_MISSING_FILE), the generator's delete signal.  The mode-type
validation in recv_file_entry() rejected mode 0 as an invalid file type,
aborting the transfer with 'invalid file mode 00 ... code 2' before the
generator could act (a regression from 3.4.1).  Allow mode 0 through only when
missing_args==2 (the delete mode -- not --ignore-missing-args, which never
sends a mode-0 entry); all other modes are still rejected.
flist.c
testsuite/delete-missing-args-files-from_test.py [new file with mode: 0644]