Must check if whole_file > 0 these days, not just != 0.
authorWayne Davison <wayned@samba.org>
Thu, 23 Sep 2004 15:20:32 +0000 (15:20 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 23 Sep 2004 15:20:32 +0000 (15:20 +0000)
g2r-basis-filename.diff

index e733297..b27f8e0 100644 (file)
@@ -101,7 +101,7 @@ You must run "make proto" before compiling.
 -              write_int(f_out,i);
 -              write_sum_head(f_out, NULL);
 -              return;
-+      if (dry_run || whole_file) {
++      if (dry_run || whole_file > 0) {
 +              statret = -1;
 +              goto notify_others;
        }
@@ -386,9 +386,9 @@ You must run "make proto" before compiling.
                if (fd1 != -1 && do_fstat(fd1,&st) != 0) {
                        rsyserr(FERROR, errno, "fstat %s failed",
                                full_fname(fnamecmp));
---- orig/rsync.h       2004-08-03 15:41:32
+--- orig/rsync.h       2004-09-22 08:47:31
 +++ rsync.h    2004-09-07 21:52:22
-@@ -118,6 +118,10 @@
+@@ -119,6 +119,10 @@
  #define PDIR_CREATE   1
  #define PDIR_DELETE   0