From d1fe65fc5e5f05bc8aba00bc232d00ebc72aa6ab Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 2 May 2010 17:05:07 -0700 Subject: [PATCH] Make an empty-string dest-dir the same as "." again. --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index 0455734d..d020e6c2 100644 --- 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'))) -- 2.34.1