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:
9fbec6e
)
Make an empty-string dest-dir the same as "." again.
author
Wayne Davison
<wayned@samba.org>
Mon, 3 May 2010 00:05:07 +0000
(17:05 -0700)
committer
Wayne Davison
<wayned@samba.org>
Mon, 3 May 2010 00:05:07 +0000
(17:05 -0700)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 0455734d9020d0f977c4ddaa2737227227b6f40a..d020e6c2f95e217b29dcd0de00eb1f8f4b949d05 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-576,6
+576,10
@@
static char *get_local_name(struct file_list *flist, char *dest_path)
if (!dest_path || list_only)
return NULL;
+ /* Treat an empty string as a copy into the current directory. */
+ if (!*dest_path)
+ dest_path = ".";
+
if (daemon_filter_list.head) {
char *slash = strrchr(dest_path, '/');
if (slash && (slash[1] == '\0' || (slash[1] == '.' && slash[2] == '\0')))