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
Added parsing for all the latest options.
[rsync/rsync.git]
/
flist.c
diff --git
a/flist.c
b/flist.c
index
6bbf322
..
979090e
100644
(file)
--- a/
flist.c
+++ b/
flist.c
@@
-1185,6
+1185,8
@@
struct file_list *send_file_list(int f, int argc, char *argv[])
} else
break;
}
+ if (len == 1 && fn[0] == '/')
+ fn[len++] = '.';
fn[len] = '\0';
/* Reject a ".." dir in the active part of the path. */
for (p = fn; (p = strstr(p, "..")) != NULL; p += 2) {