Bug 10325 - Links to files marked schg (system immutable) fail
Links to files marked schg (system immutable) fail
Status: NEW
Product: rsync
Classification: Unclassified
Component: core
3.1.0
x64 FreeBSD
: P3 normal
: ---
Assigned To: Wayne Davison
Rsync QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-15 21:00 UTC by Kevin Oberman
Modified: 2013-12-15 21:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Oberman 2013-12-15 21:00:04 UTC
On FreeBSD 9.2 on amd64 system the following command is broken if a destination file marked schg already exists:
rsync -axHAXSv --fileflags --force-schange --delete /usr/ /media/usrbak/

rsync: link "/media/usrbak/bin/chsh" => bin/ypchfn failed: Operation not permitted (1)
rsync: link "/media/usrbak/bin/chpass" => bin/ypchfn failed: Operation not permitted (1)
rsync: link "/media/usrbak/bin/chfn" => bin/ypchfn failed: Operation not permitted (1)
rsync: link "/media/usrbak/bin/.ypchpass.2878" => bin/ypchfn failed: Operation not permitted (1)
rsync: link "/media/usrbak/bin/.ypchpass.2878" => bin/ypchsh failed: Operation not permitted (1)
rsync: link "/media/usrbak/bin/.ypchfn.2878" => bin/ypchsh failed: Operation not permitted (1)
Hlink node data for 184 already has path=bin/ypchfn (bin/ypchfn)
rsync error: errors with program diagnostics (code 13) at hlink.c(543) [generator=3.1.0]
Exit 13

Note that the final error is fatal.

rsync was built with the RENAME and FLAGS patches.