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:
4bde45f
)
The length check in make_file() doesn't need to subtract pathname_len
author
Wayne Davison
<wayned@samba.org>
Sat, 7 Jul 2007 16:01:59 +0000
(16:01 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 7 Jul 2007 16:01:59 +0000
(16:01 +0000)
anymore, as the sender code never concatenates the F_PATHNAME() value
with the dirname+basename string these days.
flist.c
patch
|
blob
|
history
diff --git
a/flist.c
b/flist.c
index 87dbf41143a28cfc9d735d1f89e0913f28ca6546..a6c324ae9d05253642fdf96b10b91bd400f7a882 100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-1002,8
+1002,7
@@
struct file_struct *make_file(const char *fname, struct file_list *flist,
alloc_pool_t *pool;
char *bp;
- if (strlcpy(thisname, fname, sizeof thisname)
- >= sizeof thisname - pathname_len) {
+ if (strlcpy(thisname, fname, sizeof thisname) >= sizeof thisname) {
rprintf(FINFO, "skipping overly long name: %s\n", fname);
return NULL;
}