X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/7cf8a5515da2ce8ec6b3bd11f51cc890a6b24b5e..88f7513df3fca996d2669285ddb48a362a9a9825:/id-pair.diff diff --git a/id-pair.diff b/id-pair.diff index 8fa4fac..30bd52c 100644 --- a/id-pair.diff +++ b/id-pair.diff @@ -18,7 +18,7 @@ gets to be really large. extern struct file_list *the_file_list; extern char curr_dir[MAXPATHLEN]; -@@ -355,14 +356,14 @@ static void send_file_entry(struct file_ +@@ -347,14 +348,14 @@ static void send_file_entry(struct file_ } } else if (protocol_version < 28) rdev = makedev(0, 0); @@ -37,7 +37,7 @@ gets to be really large. if (file->modtime == modtime) flags |= XMIT_SAME_TIME; else -@@ -613,8 +614,7 @@ static struct file_struct *receive_file_ +@@ -605,8 +606,7 @@ static struct file_struct *receive_file_ file->modtime = modtime; file->length = file_length; file->mode = mode; @@ -47,7 +47,7 @@ gets to be really large. if (dirname_len) { file->dirname = lastdir = bp; -@@ -865,8 +865,7 @@ struct file_struct *make_file(char *fnam +@@ -855,8 +855,7 @@ struct file_struct *make_file(char *fnam file->modtime = st.st_mtime; file->length = st.st_size; file->mode = st.st_mode; @@ -57,7 +57,7 @@ gets to be really large. #ifdef SUPPORT_HARD_LINKS if (flist && flist->hlink_pool) { -@@ -934,8 +933,7 @@ struct file_struct *make_file(char *fnam +@@ -924,8 +923,7 @@ struct file_struct *make_file(char *fnam file->modtime = st2.st_mtime; file->length = st2.st_size; file->mode = st2.st_mode; @@ -67,7 +67,7 @@ gets to be really large. file->u.link = NULL; } else file->mode = save_mode; -@@ -1379,7 +1377,7 @@ struct file_list *recv_file_list(int f) +@@ -1375,7 +1373,7 @@ struct file_list *recv_file_list(int f) clean_flist(flist, relative_paths, 1); if (f >= 0) { @@ -76,7 +76,7 @@ gets to be really large. /* Recv the io_error flag */ if (lp_ignore_errors(module_id) || ignore_errors) -@@ -1695,13 +1693,15 @@ static void output_flist(struct file_lis +@@ -1691,13 +1689,15 @@ static void output_flist(struct file_lis for (i = 0; i < flist->count; i++) { file = flist->files[i]; @@ -148,15 +148,15 @@ gets to be really large. iflags |= ITEM_IS_NEW; --- old/log.c +++ new/log.c -@@ -43,6 +43,7 @@ extern int daemon_log_format_has_o_or_i; - extern mode_t orig_umask; - extern char *auth_user; +@@ -45,6 +45,7 @@ extern char *auth_user; extern char *log_format; + extern char *logfile_format; + extern char *logfile_name; +extern struct id_pair *id_pairs; #if defined HAVE_ICONV_OPEN && defined HAVE_ICONV_H extern iconv_t ic_chck; #endif -@@ -475,16 +476,16 @@ static void log_formatted(enum logcode c +@@ -464,16 +465,16 @@ static void log_formatted(enum logcode c case 'U': strlcat(fmt, "ld", sizeof fmt); snprintf(buf2, sizeof buf2, fmt, @@ -235,7 +235,7 @@ gets to be really large. rsyserr(FERROR, errno, "%s %s failed", --- old/rsync.h +++ new/rsync.h -@@ -495,6 +495,11 @@ struct hlink { +@@ -496,6 +496,11 @@ struct hlink { int hlindex; }; @@ -247,7 +247,7 @@ gets to be really large. #define F_DEV link_u.idev->dev #define F_INODE link_u.idev->inode -@@ -519,8 +524,7 @@ struct file_struct { +@@ -520,8 +525,7 @@ struct file_struct { struct hlink *links; } link_u; time_t modtime;