[go: up one dir, main page]

Opened 15 years ago

Last modified 4 years ago

#22590 assigned defect

rsync can silently corrupt OS X files due to lack of extended attribute support

Reported by: ned-deily (Ned Deily) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: nonstop.server@…, cooljeanius (Eric Gallager)
Port: rsync

Description (last modified by mf2k (Frank Schima))

The MacPorts rsync lacks the Apple-specific modifications to support extended attribute and resource fork copy.

        -E, --extended-attributes   copy extended attributes, resource forks

vs

        -E, --executability         preserve executability

This is particularly nasty because at least one popular port (git-core) pulls in rsync as a dependency and -aE is a valid option in both versions of rsync. So, when users install git-core via MacPorts, they may not realize that rsync is also being installed and, if they use rsync to backup OS X files, they may not find out until it is too late that crucial HFS metadata (like resource forks and other extended attributes) were not copied as expected if the Apple rsync had been used.

I would think the best solution would be to forward port the Apple -E changes but, if that's not possible, there should be some other change, perhaps a warning when -E is selected. Or remove the dependency in git-core on rsync. As it stands, considering the popularity of rsync as a backup solution, it is way too easy for users to end up with silently corrupted files.

Change History (8)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to simon@…

comment:2 Changed 15 years ago by danielluke (Daniel J. Luke)

We could also recommend putting system directories before macports ones in $PATH (which we used to do)...

comment:3 Changed 14 years ago by simon@…

Owner: changed from simon@… to macports-tickets@…

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to jimjag@…

comment:5 Changed 12 years ago by nonstop.server@…

Cc: nonstop.server@… added

Cc Me!

comment:6 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:7 Changed 8 years ago by raimue (Rainer Müller)

Owner: changed from jimjag@… to macports-tickets@…

comment:8 Changed 4 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to ryandesign
Status: newassigned
Note: See TracTickets for help on using tickets.