X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/432b0fbdc9acd076160445cf10b1cbb91736fef4..8bf737494f17ca384b30db13b4bc31a5158f3646:/flist.c diff --git a/flist.c b/flist.c index 80f18e48..59e451b1 100644 --- a/flist.c +++ b/flist.c @@ -424,7 +424,10 @@ struct file_list *send_file_list(int f,int argc,char *argv[]) p = strrchr(fname,'/'); if (p) { *p = 0; - dir = fname; + if (p == fname) + dir = "/"; + else + dir = fname; fname = p+1; } if (!*fname)