Date: Sat, 31 Dec 2016 22:44:28 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 215688] net/rsync fileflags & forcechange don't work for hardlinks Message-ID: <bug-215688-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215688 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@FreeBSD.org Reporter: hostmaster@GTS.NET Flags: maintainer-feedback?(ehaupt@FreeBSD.org) Assignee: ehaupt@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@wjdb1:/usr/obj/usr/src/sys/WJDB1 amd64 COMMAND: rsync -aHXSE --partial --timeout=3D60 --fileflags --force-change --numeric-ids --force --super -8 /usr/bin/ /root/flags RESULT: rsync: link "/root/flags/ypchpass" =3D> ypchsh failed: Operation not permit= ted (1) rsync: link "/root/flags/ypchfn" =3D> ypchsh failed: Operation not permitte= d (1) rsync: link "/root/flags/chsh" =3D> ypchsh failed: Operation not permitted = (1) rsync: link "/root/flags/chpass" =3D> ypchsh failed: Operation not permitte= d (1) rsync: link "/root/flags/chfn" =3D> ypchsh failed: Operation not permitted = (1) rsync: link "/root/flags/passwd" =3D> yppasswd failed: Operation not permit= ted (1) rsync error: some files/attrs were not transferred (see previous errors) (c= ode 23) at main.c(1200) [sender=3D3.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 lin= ks and immutable file flags. After fixing these manually, further updates no longer produce the errors. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215688-13>