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
If readdir() gives us an empty name, reject it.
[rsync/rsync.git]
/
flist.c
diff --git
a/flist.c
b/flist.c
index
87a15b1
..
aa5a7c3
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-1469,6
+1469,13
@@
static void send_directory(int f, struct file_list *flist, char *fbuf, int len,
full_fname(fbuf));
continue;
}
+ if (dname[0] == '\0') {
+ io_error |= IOERR_GENERAL;
+ rprintf(FINFO,
+ "cannot send file with empty name in %s\n",
+ full_fname(fbuf));
+ continue;
+ }
send_file_name(f, flist, fbuf, NULL, flags, filter_level);
}