Page MenuHomeFreeBSD

net/rsync: Add back the FLAGS option
Needs ReviewPublic

Authored by des on Thu, Jun 18, 2:19 PM.
Tags
None
Referenced Files
F160187346: D57645.id180015.diff
Mon, Jun 22, 12:30 AM
F160165578: D57645.diff
Sun, Jun 21, 8:47 PM
Unknown Object (File)
Sun, Jun 21, 1:26 PM
Unknown Object (File)
Sat, Jun 20, 10:48 PM
Unknown Object (File)
Fri, Jun 19, 7:35 AM
Unknown Object (File)
Fri, Jun 19, 7:35 AM
Unknown Object (File)
Thu, Jun 18, 8:42 PM
Unknown Object (File)
Thu, Jun 18, 4:11 PM
Subscribers
None

Details

Reviewers
rodrigo
Summary

This restores support for copying file flags and fixes a long-standing
peeve of mine by renaming the command-line option to --file-flags,
better matching the naming style of other rsync options. Full backward
compatibility is maintained, including with older servers.

MFH: 2026Q2

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74053
Build 70936: arc lint + arc unit

Event Timeline

des requested review of this revision.Thu, Jun 18, 2:19 PM
des created this revision.
net/rsync/files/extra-patch-file-flags.diff
487

--force switch still exists and has the same effect of --force-delete
so its description in the manpage should be :

--force an alias for --force-delete

Since this patch is larger than a simple porting patch, and given that it is intended to evolve in the near future,
it probably easier to keep it in a separate VCS system to help track evolution and changes.

If you don't mind I can create a separate GH repo for this additional patch, so I don't have to involve yourself
at any rsync update who break things.
BTW, I'm open to other alternatives too.

net/rsync/files/extra-patch-file-flags.diff
478

--fileflags switch was kept in the command line options, which is good to prevent POLA breakage
but we should also keep it in the manpage to avoid users confusion:

--fileflags an alias for --file-flags

Since this patch is larger than a simple porting patch, and given that it is intended to evolve in the near future,
it probably easier to keep it in a separate VCS system to help track evolution and changes.

https://github.com/dag-erling/rsync/tree/des/file-flags