Matt McCutchen's Web Site
/
rsync
/
rsync-patches.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use "use warnings" rather than -w on the #! line.
[rsync/rsync-patches.git]
/
checksum-updating.diff
diff --git
a/checksum-updating.diff
b/checksum-updating.diff
index
d8f98fc
..
195cdf6
100644
(file)
--- a/
checksum-updating.diff
+++ b/
checksum-updating.diff
@@
-423,7
+423,7
@@
diff --git a/flist.c b/flist.c
else
file_checksum(thisname, st.st_size, tmp_sum);
}
else
file_checksum(thisname, st.st_size, tmp_sum);
}
-@@ -1
915,6 +2128
,9 @@ static void send_directory(int f, struct file_list *flist, char *fbuf, int len,
+@@ -1
898,6 +2111
,9 @@ static void send_directory(int f, struct file_list *flist, char *fbuf, int len,
closedir(d);
closedir(d);
@@
-433,7
+433,7
@@
diff --git a/flist.c b/flist.c
if (f >= 0 && recurse && !divert_dirs) {
int i, end = flist->used - 1;
/* send_if_directory() bumps flist->used, so use "end". */
if (f >= 0 && recurse && !divert_dirs) {
int i, end = flist->used - 1;
/* send_if_directory() bumps flist->used, so use "end". */
-@@ -2
512,6 +2728
,9 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
+@@ -2
495,6 +2711
,9 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
} else
flist_eof = 1;
} else
flist_eof = 1;
@@
-454,7
+454,7
@@
diff --git a/generator.c b/generator.c
static const char *solo_file = NULL;
/* For calling delete_item() and delete_dir_contents(). */
static const char *solo_file = NULL;
/* For calling delete_item() and delete_dir_contents(). */
-@@ -72
3,7 +724
,7 @@ int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st, int slot
+@@ -72
6,7 +727
,7 @@ int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st, int slot
if (always_checksum > 0 && S_ISREG(st->st_mode)) {
char sum[MAX_DIGEST_LEN];
if (checksum_files && slot >= 0)
if (always_checksum > 0 && S_ISREG(st->st_mode)) {
char sum[MAX_DIGEST_LEN];
if (checksum_files && slot >= 0)
@@
-463,7
+463,7
@@
diff --git a/generator.c b/generator.c
else
file_checksum(fn, st->st_size, sum);
return memcmp(sum, F_SUM(file), checksum_len) == 0;
else
file_checksum(fn, st->st_size, sum);
return memcmp(sum, F_SUM(file), checksum_len) == 0;
-@@ -136
6,7 +1367
,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
+@@ -136
9,7 +1370
,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
fuzzy_dirlist = get_dirlist(fnamecmpbuf, -1, 1);
}
if (checksum_files) {
fuzzy_dirlist = get_dirlist(fnamecmpbuf, -1, 1);
}
if (checksum_files) {
@@
-473,7
+473,7
@@
diff --git a/generator.c b/generator.c
}
need_new_dirscan = 0;
}
}
need_new_dirscan = 0;
}
-@@ -151
6,6 +1518
,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
+@@ -151
9,6 +1521
,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
else
change_local_filter_dir(fname, strlen(fname), F_DEPTH(file));
}
else
change_local_filter_dir(fname, strlen(fname), F_DEPTH(file));
}
@@
-481,7
+481,7
@@
diff --git a/generator.c b/generator.c
goto cleanup;
}
goto cleanup;
}
-@@ -18
08,6 +1811
,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
+@@ -18
11,6 +1814
,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx,
handle_partial_dir(partialptr, PDIR_DELETE);
}
set_file_attrs(fname, file, &sx, NULL, maybe_ATTRS_REPORT);
handle_partial_dir(partialptr, PDIR_DELETE);
}
set_file_attrs(fname, file, &sx, NULL, maybe_ATTRS_REPORT);
@@
-490,7
+490,7
@@
diff --git a/generator.c b/generator.c
if (itemizing)
itemize(fnamecmp, file, ndx, statret, &sx, 0, 0, NULL);
#ifdef SUPPORT_HARD_LINKS
if (itemizing)
itemize(fnamecmp, file, ndx, statret, &sx, 0, 0, NULL);
#ifdef SUPPORT_HARD_LINKS
-@@ -22
49,6 +2254
,7 @@ void generate_files(int f_out, const char *local_name)
+@@ -22
52,6 +2257
,7 @@ void generate_files(int f_out, const char *local_name)
} else
change_local_filter_dir(fbuf, strlen(fbuf), F_DEPTH(fp));
}
} else
change_local_filter_dir(fbuf, strlen(fbuf), F_DEPTH(fp));
}
@@
-498,7
+498,7
@@
diff --git a/generator.c b/generator.c
}
for (i = cur_flist->low; i <= cur_flist->high; i++) {
struct file_struct *file = cur_flist->sorted[i];
}
for (i = cur_flist->low; i <= cur_flist->high; i++) {
struct file_struct *file = cur_flist->sorted[i];
-@@ -233
5,6 +2341
,9 @@ void generate_files(int f_out, const char *local_name)
+@@ -233
8,6 +2344
,9 @@ void generate_files(int f_out, const char *local_name)
wait_for_receiver();
}
wait_for_receiver();
}
@@
-546,7
+546,7
@@
diff --git a/loadparm.c b/loadparm.c
diff --git a/options.c b/options.c
--- a/options.c
+++ b/options.c
diff --git a/options.c b/options.c
--- a/options.c
+++ b/options.c
-@@ -123
3,7 +1233
,15 @@ int parse_arguments(int *argc_p, const char ***argv_p)
+@@ -123
4,7 +1234
,15 @@ int parse_arguments(int *argc_p, const char ***argv_p)
case OPT_SUMFILES:
arg = poptGetOptArg(pc);
case OPT_SUMFILES:
arg = poptGetOptArg(pc);
@@
-574,7
+574,7
@@
diff --git a/receiver.c b/receiver.c
extern int inplace;
extern int delay_updates;
extern mode_t orig_umask;
extern int inplace;
extern int delay_updates;
extern mode_t orig_umask;
-@@ -34
0,7 +341
,7 @@ static void handle_delayed_updates(char *local_name)
+@@ -34
3,7 +344
,7 @@ static void handle_delayed_updates(char *local_name)
"rename failed for %s (from %s)",
full_fname(fname), partialptr);
} else {
"rename failed for %s (from %s)",
full_fname(fname), partialptr);
} else {
@@
-583,7
+583,7
@@
diff --git a/receiver.c b/receiver.c
|| (preserve_hard_links && F_IS_HLINKED(file)))
send_msg_int(MSG_SUCCESS, ndx);
handle_partial_dir(partialptr, PDIR_DELETE);
|| (preserve_hard_links && F_IS_HLINKED(file)))
send_msg_int(MSG_SUCCESS, ndx);
handle_partial_dir(partialptr, PDIR_DELETE);
-@@ -75
5,7 +756
,7 @@ int recv_files(int f_in, char *local_name)
+@@ -75
8,7 +759
,7 @@ int recv_files(int f_in, char *local_name)
case 2:
break;
case 1:
case 2:
break;
case 1:
@@
-607,7
+607,7
@@
diff --git a/rsync.h b/rsync.h
diff --git a/rsync.yo b/rsync.yo
--- a/rsync.yo
+++ b/rsync.yo
diff --git a/rsync.yo b/rsync.yo
--- a/rsync.yo
+++ b/rsync.yo
-@@ -54
4,9 +544
,13 @@ computed just as it would be if bf(--sumfiles) was not specified.
+@@ -54
8,9 +548
,13 @@ computed just as it would be if bf(--sumfiles) was not specified.
The MODE value is either "lax", for relaxed checking (which compares size
and mtime), "strict" (which also compares ctime and inode), or "none" to
The MODE value is either "lax", for relaxed checking (which compares size
and mtime), "strict" (which also compares ctime and inode), or "none" to