Quantcast

Solved problem with hard links and schg flag under FreeBSD

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Solved problem with hard links and schg flag under FreeBSD

Franz Schwartau
Hi!

Using rsync under FreeBSD with hard links and files having schg set
result in EPERM "Operation not permitted". This behavior can be observed
if rsyncing /usr/bin/.

The patch fileflags.diff tries to deal with this situation but changes
the flags of the parent directory only. It doesn't change the flags of
the files itself.

do_link() in syscall.c has to be fixed. The attached
syscall-do_link.c.txt contains the complete function do_link().
patch-syscall.c.txt is a patch which have the be applied after
fileflags.diff.

Please have a look at the changes.

What is the "official" way of asking for inclusion in the rsync
distribution? Reporting a bug via bugzilla?

        Best regards
                Franz

--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

syscall-do_link.c.txt (851 bytes) Download Attachment
patch-syscall.c.txt (813 bytes) Download Attachment
Loading...