Call log_item() instead of log_recv().
authorWayne Davison <wayned@samba.org>
Fri, 4 Mar 2005 16:08:16 +0000 (16:08 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 4 Mar 2005 16:08:16 +0000 (16:08 +0000)
generator.c
receiver.c

index b8888f9d7c14f402f96eb6dffcb1a0428545b8a3..79b7e63ff5dfeecb28edc462f5aa7d9b083933f4 100644 (file)
@@ -331,7 +331,7 @@ static void itemize(struct file_struct *file, int statret, STRUCT_STAT *st,
                                write_int(f_out, ndx);
                        write_shortint(f_out, iflags);
                } else if (ndx >= 0)
-                       log_recv(file, &stats, iflags);
+                       log_item(file, &stats, iflags, NULL);
        }
 }
 
index 656f2a25b6f7cb55fdeaeb0958504b368b75214e..1dfa96f09d080948d2a2d4791c5ada885128621d 100644 (file)
@@ -408,11 +408,11 @@ int recv_files(int f_in, struct file_list *flist, char *local_name,
                                int see_item = itemizing && (iflags || verbose > 1);
                                if (am_server) {
                                        if (am_daemon && !dry_run && see_item)
-                                               log_recv(file, &stats, iflags);
+                                               log_item(file, &stats, iflags, NULL);
                                } else if (see_item || iflags & ITEM_UPDATING
                                    || (S_ISDIR(file->mode)
                                     && iflags & ITEM_REPORT_TIME))
-                                       log_recv(file, &stats, iflags);
+                                       log_item(file, &stats, iflags, NULL);
                                continue;
                        }
                } else
@@ -437,7 +437,7 @@ int recv_files(int f_in, struct file_list *flist, char *local_name,
 
                if (dry_run) { /* log the transfer */
                        if (!am_server && log_format)
-                               log_recv(file, &stats, iflags);
+                               log_item(file, &stats, iflags, NULL);
                        continue;
                }
 
@@ -581,7 +581,7 @@ int recv_files(int f_in, struct file_list *flist, char *local_name,
 
                /* log the transfer */
                if (log_before_transfer)
-                       log_recv(file, &initial_stats, iflags);
+                       log_item(file, &initial_stats, iflags, NULL);
                else if (!am_server && verbose && do_progress)
                        rprintf(FINFO, "%s\n", safe_fname(fname));
 
@@ -590,7 +590,7 @@ int recv_files(int f_in, struct file_list *flist, char *local_name,
                                       fname, fd2, file->length);
 
                if (!log_before_transfer)
-                       log_recv(file, &initial_stats, iflags);
+                       log_item(file, &initial_stats, iflags, NULL);
 
                if (fd1 != -1)
                        close(fd1);