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
Let's just remove all the UNUSED() macros for now.
[rsync/rsync.git]
/
flist.c
diff --git
a/flist.c
b/flist.c
index
b1a3538
..
35bbed1
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-539,6
+539,7
@@
void receive_file_entry(struct file_struct **fptr, unsigned short flags,
rdev_major = 0;
uid = 0, gid = 0;
*lastname = '\0';
rdev_major = 0;
uid = 0, gid = 0;
*lastname = '\0';
+ lastdir_len = -1;
return;
}
return;
}
@@
-745,7
+746,7
@@
struct file_struct *make_file(char *fname,
char *basename, *dirname, *bp;
unsigned short flags = 0;
char *basename, *dirname, *bp;
unsigned short flags = 0;
- if (!flist
) /* lastdir isn't valid if flist is NULL
*/
+ if (!flist
|| !flist->count) /* Ignore lastdir when invalid.
*/
lastdir_len = -1;
if (strlcpy(thisname, fname, sizeof thisname)
lastdir_len = -1;
if (strlcpy(thisname, fname, sizeof thisname)