Fixed a failing hunk.
[rsync/rsync-patches.git] / ODBC-dblog.diff
index 09ecd25..efb7b40 100644 (file)
@@ -88,7 +88,7 @@ This patch adds the following options:
     automatically generates unique IDs).  Defaults to True.
 
 
---- orig/Makefile.in   2004-05-15 00:53:53
+--- orig/Makefile.in   2004-08-13 07:18:58
 +++ Makefile.in        2004-07-03 20:22:18
 @@ -32,7 +32,7 @@ ZLIBOBJ=zlib/deflate.o zlib/infblock.o z
        zlib/inflate.o zlib/inftrees.o zlib/infutil.o zlib/trees.o \
@@ -99,9 +99,9 @@ This patch adds the following options:
  OBJS2=options.o flist.o io.o compat.o hlink.o token.o uidlist.o socket.o \
        fileio.o batch.o clientname.o
  OBJS3=progress.o pipe.o
---- orig/cleanup.c     2004-07-02 18:11:26
+--- orig/cleanup.c     2004-07-29 16:08:03
 +++ cleanup.c  2004-07-03 20:22:18
-@@ -141,8 +141,12 @@ void _exit_cleanup(int code, const char 
+@@ -139,8 +139,12 @@ void _exit_cleanup(int code, const char 
                        code = RERR_VANISHED;
        }
  
@@ -115,9 +115,9 @@ This patch adds the following options:
  
        if (verbose > 2) {
                rprintf(FINFO,"_exit_cleanup(code=%d, file=%s, line=%d): about to call exit(%d)\n",
---- orig/clientserver.c        2004-06-18 15:59:19
+--- orig/clientserver.c        2004-08-02 02:29:16
 +++ clientserver.c     2004-07-03 20:22:18
-@@ -315,6 +315,9 @@ static int rsync_module(int f_in, int f_
+@@ -322,6 +322,9 @@ static int rsync_module(int f_in, int f_
        exclude_path_prefix = NULL;
  
        log_init();
@@ -127,7 +127,7 @@ This patch adds the following options:
  
        if (use_chroot) {
                /*
-@@ -433,6 +436,9 @@ static int rsync_module(int f_in, int f_
+@@ -440,6 +443,9 @@ static int rsync_module(int f_in, int f_
                        rprintf(FLOG, "rsync %s %s from %s@%s (%s)\n",
                                am_sender ? "on" : "to",
                                request, auth_user, host, addr);
@@ -137,7 +137,7 @@ This patch adds the following options:
                } else {
                        rprintf(FLOG, "rsync %s %s from %s (%s)\n",
                                am_sender ? "on" : "to",
---- orig/configure.in  2004-04-30 18:04:07
+--- orig/configure.in  2004-09-23 17:42:07
 +++ configure.in       2004-07-03 20:22:18
 @@ -94,6 +94,8 @@ AC_ARG_WITH(rsync-path,
        [  --with-rsync-path=PATH  set default --rsync-path to PATH (default: rsync)],
@@ -148,7 +148,7 @@ This patch adds the following options:
  
  AC_DEFINE_UNQUOTED(RSYNC_PATH, "$RSYNC_PATH", [location of rsync on remote machine])
  
-@@ -465,6 +467,14 @@ then
+@@ -466,6 +468,14 @@ then
      AC_CHECK_LIB(popt, poptGetContext, , [with_included_popt=yes])
  fi
  
@@ -612,7 +612,7 @@ This patch adds the following options:
 +              rprintf(FERROR,"Error at db_log_exit: Not connected to database!\n");
 +      }
 +}
---- orig/loadparm.c    2004-05-21 08:43:10
+--- orig/loadparm.c    2004-07-31 16:41:04
 +++ loadparm.c 2004-07-03 20:22:18
 @@ -123,6 +123,17 @@ typedef struct
        BOOL list;
@@ -686,7 +686,7 @@ This patch adds the following options:
  FN_LOCAL_BOOL(lp_ignore_errors, ignore_errors)
  FN_LOCAL_BOOL(lp_ignore_nonreadable, ignore_nonreadable)
  FN_LOCAL_STRING(lp_uid, uid)
---- orig/log.c 2004-06-09 15:34:38
+--- orig/log.c 2004-09-07 19:54:51
 +++ log.c      2004-07-03 20:22:18
 @@ -75,7 +75,7 @@ struct {
  /*
@@ -697,9 +697,9 @@ This patch adds the following options:
  {
        int i;
        for (i = 0; rerr_names[i].name; i++) {
---- orig/main.c        2004-06-30 07:24:30
+--- orig/main.c        2004-09-29 17:58:26
 +++ main.c     2004-07-03 20:22:18
-@@ -121,6 +121,9 @@ static void report(int f)
+@@ -136,6 +136,9 @@ static void report(int f)
  
        if (am_daemon) {
                log_exit(0, __FILE__, __LINE__);
@@ -709,28 +709,27 @@ This patch adds the following options:
                if (f == -1 || !am_sender)
                        return;
        }
---- orig/receiver.c    2004-07-02 18:23:01
-+++ receiver.c 2004-07-03 20:22:18
-@@ -460,7 +460,9 @@ int recv_files(int f_in,struct file_list
-               recv_ok = receive_data(f_in,mapbuf,fd2,fname,file->length);
+--- orig/receiver.c    2004-09-21 09:40:27
++++ receiver.c 2004-07-20 21:47:47
+@@ -546,6 +546,9 @@ int recv_files(int f_in, struct file_lis
+                                      fname, fd2, file->length);
  
                log_recv(file, &initial_stats);
--
 +#ifdef HAVE_LIBODBC
 +              db_log_transfer(file, &initial_stats, "receive");
 +#endif
-               if (mapbuf)
-                       unmap_file(mapbuf);
                if (fd1 != -1)
---- orig/sender.c      2004-06-18 16:55:00
-+++ sender.c   2004-07-03 20:22:18
-@@ -281,6 +281,9 @@ void send_files(struct file_list *flist,
-               } else  { /* not read_batch */
-                       match_sums(f_out, s, mbuf, st.st_size);
-                       log_send(file, &initial_stats);
+                       close(fd1);
+--- orig/sender.c      2004-09-20 05:10:48
++++ sender.c   2004-07-15 02:37:48
+@@ -239,6 +239,9 @@ void send_files(struct file_list *flist,
+               match_sums(f_out, s, mbuf, st.st_size);
+               log_send(file, &initial_stats);
 +#ifdef HAVE_LIBODBC
-+                      db_log_transfer(file, &initial_stats,"send");
++              db_log_transfer(file, &initial_stats,"send");
 +#endif
-               }
  
-               if (!read_batch) {
+               if (mbuf) {
+                       j = unmap_file(mbuf);