[Bug 215688] net/rsync fileflags & forcechange don't work for hardlinks

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Dec 31 22:44:29 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215688

            Bug ID: 215688
           Summary: net/rsync fileflags & forcechange don't work for
                    hardlinks
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ehaupt at FreeBSD.org
          Reporter: hostmaster at GTS.NET
             Flags: maintainer-feedback?(ehaupt at FreeBSD.org)
          Assignee: ehaupt at FreeBSD.org

PORT:    net/rsync version 3.1.2  protocol version 31

O/S:     FreeBSD wjdb1 10.1-STABLE FreeBSD 10.1-STABLE #0 r278180: Wed Feb  4
01:20:35 EST 2015     root at wjdb1:/usr/obj/usr/src/sys/WJDB1  amd64

COMMAND: rsync -aHXSE --partial --timeout=60 --fileflags --force-change
--numeric-ids --force --super -8 /usr/bin/ /root/flags

RESULT:
rsync: link "/root/flags/ypchpass" => ypchsh failed: Operation not permitted
(1)
rsync: link "/root/flags/ypchfn" => ypchsh failed: Operation not permitted (1)
rsync: link "/root/flags/chsh" => ypchsh failed: Operation not permitted (1)
rsync: link "/root/flags/chpass" => ypchsh failed: Operation not permitted (1)
rsync: link "/root/flags/chfn" => ypchsh failed: Operation not permitted (1)
rsync: link "/root/flags/passwd" => yppasswd failed: Operation not permitted
(1)
rsync error: some files/attrs were not transferred (see previous errors) (code
23) at main.c(1200) [sender=3.1.2]

This happens both for attempted creation as well as for updates -
it also happens with rsync versions 3.1.1 & 3.0.8

The affected hard links are not created from these source files:
-r-sr-xr-x   6 root  wheel   schg    22616 Feb  4  2015 /usr/bin/chfn*
-r-sr-xr-x   6 root  wheel   schg    22616 Feb  4  2015 /usr/bin/chpass*
-r-sr-xr-x   6 root  wheel   schg    22616 Feb  4  2015 /usr/bin/chsh*
-r-sr-xr-x   2 root  wheel   schg     8384 Feb  4  2015 /usr/bin/passwd*
-r-sr-xr-x   6 root  wheel   schg    22616 Feb  4  2015 /usr/bin/ypchfn*
-r-sr-xr-x   6 root  wheel   schg    22616 Feb  4  2015 /usr/bin/ypchpass*

... although these source files are created:
-r-sr-xr-x   6 root  wheel   schg    22616 Feb  4  2015 /usr/bin/ypchsh*
-r-sr-xr-x   2 root  wheel   schg     8384 Feb  4  2015 /usr/bin/yppasswd*

Apparently rsync is unable to correctly deal with a combination of hard links
and immutable file flags.

After fixing these manually, further updates no longer produce the errors.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list