Updated to apply cleanly.
[rsync/rsync-patches.git] / link-by-hash.diff
index d8bd437..903827b 100644 (file)
@@ -365,7 +365,7 @@ the file's name.
 +}
 +
 +#endif
---- orig/options.c     2005-01-28 19:08:20
+--- orig/options.c     2005-02-01 10:39:22
 +++ options.c  2005-01-28 19:32:26
 @@ -132,6 +132,7 @@ char *log_format = NULL;
  char *password_file = NULL;
@@ -422,7 +422,7 @@ the file's name.
                default:
                        /* A large opt value means that set_refuse_options()
                         * turned this option off (opt-BASE is its index). */
-@@ -1299,6 +1317,11 @@ void server_options(char **args,int *arg
+@@ -1305,6 +1323,11 @@ void server_options(char **args,int *arg
                }
        }
  
@@ -434,9 +434,9 @@ the file's name.
        if (files_from && (!am_sender || remote_filesfrom_file)) {
                if (remote_filesfrom_file) {
                        args[ac++] = "--files-from";
---- orig/receiver.c    2005-01-28 19:08:20
+--- orig/receiver.c    2005-02-03 02:04:20
 +++ receiver.c 2005-01-15 21:29:13
-@@ -36,6 +36,7 @@ extern int preserve_hard_links;
+@@ -35,6 +35,7 @@ extern int preserve_hard_links;
  extern int preserve_perms;
  extern int io_error;
  extern char *tmpdir;
@@ -444,7 +444,7 @@ the file's name.
  extern char *partial_dir;
  extern char *basis_dir[];
  extern int basis_dir_cnt;
-@@ -132,12 +133,13 @@ static int get_tmpname(char *fnametmp, c
+@@ -136,12 +137,13 @@ static int get_tmpname(char *fnametmp, c
  
  
  static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r,
@@ -459,7 +459,7 @@ the file's name.
        int32 len;
        OFF_T offset = 0;
        OFF_T offset2;
-@@ -157,6 +159,9 @@ static int receive_data(int f_in, char *
+@@ -161,6 +163,9 @@ static int receive_data(int f_in, char *
        } else
                mapbuf = NULL;
  
@@ -469,7 +469,7 @@ the file's name.
        sum_init(checksum_seed);
  
        while ((i = recv_token(f_in, &data)) != 0) {
-@@ -173,6 +178,8 @@ static int receive_data(int f_in, char *
+@@ -177,6 +182,8 @@ static int receive_data(int f_in, char *
                        cleanup_got_literal = 1;
  
                        sum_update(data, i);
@@ -478,7 +478,7 @@ the file's name.
  
                        if (fd != -1 && write_file(fd,data,i) != i)
                                goto report_write_error;
-@@ -199,6 +206,8 @@ static int receive_data(int f_in, char *
+@@ -203,6 +210,8 @@ static int receive_data(int f_in, char *
  
                        see_token(map, len);
                        sum_update(map, len);
@@ -487,7 +487,7 @@ the file's name.
                }
  
                if (inplace) {
-@@ -239,6 +248,8 @@ static int receive_data(int f_in, char *
+@@ -243,6 +252,8 @@ static int receive_data(int f_in, char *
        }
  
        sum_end(file_sum1);
@@ -496,7 +496,7 @@ the file's name.
  
        if (mapbuf)
                unmap_file(mapbuf);
-@@ -254,7 +265,7 @@ static int receive_data(int f_in, char *
+@@ -258,7 +269,7 @@ static int receive_data(int f_in, char *
  
  static void discard_receive_data(int f_in, OFF_T length)
  {
@@ -505,7 +505,7 @@ the file's name.
  }
  
  
-@@ -495,8 +506,12 @@ int recv_files(int f_in, struct file_lis
+@@ -500,8 +511,12 @@ int recv_files(int f_in, struct file_lis
                        rprintf(FINFO, "%s\n", safe_fname(fname));
  
                /* recv file data */
@@ -519,9 +519,9 @@ the file's name.
  
                log_recv(file, &initial_stats);
  
---- orig/rsync.c       2005-01-28 19:08:20
+--- orig/rsync.c       2005-02-01 10:39:22
 +++ rsync.c    2004-08-13 18:14:34
-@@ -35,6 +35,7 @@ extern int force_delete;
+@@ -36,6 +36,7 @@ extern int force_delete;
  extern int recurse;
  extern int keep_dirlinks;
  extern int make_backups;
@@ -529,7 +529,7 @@ the file's name.
  extern char *backup_dir;
  extern int inplace;
  
-@@ -281,7 +282,12 @@ void finish_transfer(char *fname, char *
+@@ -282,7 +283,12 @@ void finish_transfer(char *fname, char *
        /* move tmp file over real file */
        if (verbose > 2)
                rprintf(FINFO, "renaming %s to %s\n", fnametmp, fname);
@@ -543,9 +543,9 @@ the file's name.
        if (ret < 0) {
                rsyserr(FERROR, errno, "%s %s -> \"%s\"",
                    ret == -2 ? "copy" : "rename",
---- orig/rsync.h       2005-01-28 19:08:20
+--- orig/rsync.h       2005-02-03 02:04:20
 +++ rsync.h    2004-07-03 20:20:15
-@@ -599,6 +599,14 @@ struct stats {
+@@ -598,6 +598,14 @@ struct stats {
        int current_file_index;
  };
  
@@ -558,11 +558,11 @@ the file's name.
 +};
 +
  
- /* we need this function because of the silly way in which duplicate
-    entries are handled in the file lists - we can't change this
---- orig/rsync.yo      2005-01-28 17:12:14
+ #include "byteorder.h"
+ #include "lib/mdfour.h"
+--- orig/rsync.yo      2005-02-01 10:39:23
 +++ rsync.yo   2005-01-28 19:32:45
-@@ -365,6 +365,7 @@ verb(
+@@ -354,6 +354,7 @@ to the detailed description below for a 
       --compare-dest=DIR      also compare received files relative to DIR
       --copy-dest=DIR         ... and include copies of unchanged files
       --link-dest=DIR         hardlink to files in DIR when unchanged