git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d935dc
)
If readdir() gives us an empty name, reject it.
author
Wayne Davison
<wayned@samba.org>
Wed, 1 Aug 2007 22:18:46 +0000
(22:18 +0000)
committer
Wayne Davison
<wayned@samba.org>
Wed, 1 Aug 2007 22:18:46 +0000
(22:18 +0000)
flist.c
patch
|
blob
|
history
diff --git
a/flist.c
b/flist.c
index 87a15b103b1db4a5e36a703f3ab019241216f49a..aa5a7c3322cf0e37a698008baeb88e233b3ee008 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);
}