Displaying 2 results from an estimated 2 matches for "fnamecmpdest".
2004 Apr 15
0
Multiple compare-dest args
...-41,7 +41,7 @@
extern int io_timeout;
extern int protocol_version;
extern int always_checksum;
-extern char *compare_dest;
+extern char *compare_dest[];
extern int link_dest;
@@ -69,13 +69,13 @@
if (always_checksum && S_ISREG(st->st_mode)) {
char sum[MD4_SUM_LENGTH];
char fnamecmpdest[MAXPATHLEN];
+ int i = 0;
- if (compare_dest != NULL) {
- if (access(fname, 0) != 0) {
- pathjoin(fnamecmpdest, sizeof fnamecmpdest,
- compare_dest, fname);
- fname = fnamecmpdest;
- }
+ while ((access(fname, 0) != 0) && compare_dest[i] != NULL) {
+ pathjoin(fnamecmpde...
2002 Aug 05
5
[patch] read-devices
...2002
@@ -39,8 +39,9 @@
extern int io_timeout;
extern int remote_version;
extern int always_checksum;
extern int modify_window;
+extern int read_devices;
extern char *compare_dest;
/* choose whether to skip a particular file */
@@ -63,9 +64,9 @@
compare_dest,fname);
fname = fnamecmpdest;
}
}
- file_checksum(fname,sum,st->st_size);
+ file_checksum(fname,sum);
if (remote_version < 21) {
return (memcmp(sum,file->sum,2) == 0);
} else {
return (memcmp(sum,file->sum,MD4_SUM_LENGTH) == 0);
@@ -119,8 +120,9 @@
write_buf(f_out, s->sums[i].sum2, csu...