mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
* reworked patch such that -H (hard-link support) is no longer filtered out
thanks to Ingo for the note
This commit is contained in:
@@ -42,29 +42,6 @@ diff -ruaw rsync-3.0.6/Makefile.in rsync-3.0.6-haiku/Makefile.in
|
||||
|
||||
TLS_OBJ = tls.o syscall.o lib/compat.o lib/snprintf.o lib/permstring.o lib/sysxattrs.o @BUILD_POPT@
|
||||
|
||||
diff -ruaw rsync-3.0.6/options.c rsync-3.0.6-haiku/options.c
|
||||
--- rsync-3.0.6/options.c 2009-04-12 22:01:14.000000000 +0200
|
||||
+++ rsync-3.0.6-haiku/options.c 2009-05-25 19:45:29.000000000 +0200
|
||||
@@ -337,7 +337,9 @@
|
||||
rprintf(F," --safe-links ignore symlinks that point outside the source tree\n");
|
||||
rprintf(F," -k, --copy-dirlinks transform symlink to a dir into referent dir\n");
|
||||
rprintf(F," -K, --keep-dirlinks treat symlinked dir on receiver as dir\n");
|
||||
+#ifndef __HAIKU__
|
||||
rprintf(F," -H, --hard-links preserve hard links\n");
|
||||
+#endif
|
||||
rprintf(F," -p, --perms preserve permissions\n");
|
||||
rprintf(F," -E, --executability preserve the file's executability\n");
|
||||
rprintf(F," --chmod=CHMOD affect file and/or directory permissions\n");
|
||||
@@ -1086,7 +1088,9 @@
|
||||
break;
|
||||
|
||||
case 'H':
|
||||
+#ifndef __HAIKU__
|
||||
preserve_hard_links++;
|
||||
+#endif
|
||||
break;
|
||||
|
||||
case 'i':
|
||||
diff -ruaw rsync-3.0.6/rsync.h rsync-3.0.6-haiku/rsync.h
|
||||
--- rsync-3.0.6/rsync.h 2009-02-14 16:57:50.000000000 +0100
|
||||
+++ rsync-3.0.6-haiku/rsync.h 2009-05-25 19:45:29.000000000 +0200
|
||||
@@ -79,15 +56,6 @@ diff -ruaw rsync-3.0.6/rsync.h rsync-3.0.6-haiku/rsync.h
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_COMPAT_H
|
||||
@@ -957,7 +959,7 @@
|
||||
#ifdef HAVE_READLINK
|
||||
#define SUPPORT_LINKS 1
|
||||
#endif
|
||||
-#ifdef HAVE_LINK
|
||||
+#if defined HAVE_LINK && !defined __HAIKU__
|
||||
#define SUPPORT_HARD_LINKS 1
|
||||
#endif
|
||||
|
||||
diff -ruaw rsync-3.0.6/testsuite/hands.test rsync-3.0.6-haiku/testsuite/hands.test
|
||||
--- rsync-3.0.6/testsuite/hands.test 2007-03-18 21:40:01.000000000 +0100
|
||||
+++ rsync-3.0.6-haiku/testsuite/hands.test 2009-05-25 20:32:35.000000000 +0200
|
||||
|
||||
Reference in New Issue
Block a user