Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec8637f
)
Fixed a length problem parsing an arg of "./".
author
Wayne Davison
<wayned@samba.org>
Wed, 9 Jan 2008 19:51:44 +0000
(11:51 -0800)
committer
Wayne Davison
<wayned@samba.org>
Wed, 9 Jan 2008 19:51:44 +0000
(11:51 -0800)
flist.c
patch
|
blob
|
blame
|
history
diff --git
a/flist.c
b/flist.c
index
960e6a1
..
81fa2de
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-1830,7
+1830,7
@@
struct file_list *send_file_list(int f, int argc, char *argv[])
} else if (!len || fbuf[len - 1] == '/') {
if (len == 2 && fbuf[0] == '.') {
/* Turn "./" into just "." rather than "./." */
- fbuf[
1
] = '\0';
+ fbuf[
--len
] = '\0';
} else {
if (len + 1 >= MAXPATHLEN)
overflow_exit("send_file_list");