Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
got rid of "EOF in map_ptr" problem. If a file shrinks mid transfer
[rsync/rsync.git]
/
flist.c
diff --git
a/flist.c
b/flist.c
index
bc1ceba
..
e120f80
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-403,6
+403,10
@@
static struct file_struct *make_file(char *fname)
file->modtime = st.st_mtime;
file->length = st.st_size;
file->modtime = st.st_mtime;
file->length = st.st_size;
+#if TRIDGE
+ if (st.st_size == 71036)
+ file->length += 7000;
+#endif
file->mode = st.st_mode;
file->uid = st.st_uid;
file->gid = st.st_gid;
file->mode = st.st_mode;
file->uid = st.st_uid;
file->gid = st.st_gid;
@@
-616,7
+620,7
@@
struct file_list *send_file_list(int f,int argc,char *argv[])
thus getting their permissions right */
*p = 0;
if (strcmp(lastpath,fname)) {
thus getting their permissions right */
*p = 0;
if (strcmp(lastpath,fname)) {
- str
cpy(lastpath, fname
);
+ str
lcpy(lastpath, fname, sizeof(lastpath)-1
);
*p = '/';
for (p=fname+1; (p=strchr(p,'/')); p++) {
*p = 0;
*p = '/';
for (p=fname+1; (p=strchr(p,'/')); p++) {
*p = 0;