Updated to apply cleanly.
[rsync-patches.git] / soften-links.diff
index d7614b462afdd2ce69d5e6608390c5d6f0605a52..2cd562627983bd00d52f8485182a90e5cc44301b 100644 (file)
@@ -1,19 +1,22 @@
-Date: Fri, 12 Apr 2002 13:44:22 +0200
-From: Marco d'Itri <md@Linux.IT>
-To: mbp@samba.org
-Subject: rsync and debian mirrors
+Marco d'Itri wrote:
 
 I run one of the debian mirrors, and I had to write this patch because
 my archive is split between more than one disk. Would you accept a more
 polished version of this patch for inclusion in rsync?
 
-[Updated to latest CVS source by Wayne Davison.]
+To use this patch, run these commands for a successful build:
 
---- orig/syscall.c     2005-02-14 02:45:11
-+++ syscall.c  2004-04-22 23:48:45
-@@ -62,9 +62,14 @@ int do_symlink(char *fname1, char *fname
+    patch -p1 <patches/soften-links.diff
+    ./configure                           (optional if already run)
+    make
+
+based-on: 7c8f180900432e646c0a4bd02e2c4033068dbb7c
+diff --git a/syscall.c b/syscall.c
+--- a/syscall.c
++++ b/syscall.c
+@@ -110,9 +110,14 @@ ssize_t do_readlink(const char *path, char *buf, size_t bufsiz)
  #ifdef HAVE_LINK
- int do_link(char *fname1, char *fname2)
+ int do_link(const char *fname1, const char *fname2)
  {
 +      int st;
 +