mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-03-08 00:17:27 -05:00
Make an empty-string dest-dir the same as "." again.
This commit is contained in:
4
main.c
4
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')))
|
||||
|
||||
Reference in New Issue
Block a user