Use do_ftruncate() for the added call too.
[rsync-patches.git] / soften-links.diff
index 607df5a9b383b7c85a6125ba1ede05b144121a13..d23f8024ced241b3208f52bfec7dac90f24fa8b7 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 00:58:10
-+++ 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: d64bda1c1e79dc385f194d74f7957ce7cd118654
+diff --git a/syscall.c b/syscall.c
+--- a/syscall.c
++++ b/syscall.c
+@@ -106,9 +106,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;
 +