From: Andrew Tridgell Date: Tue, 6 Apr 1999 10:56:18 +0000 (+0000) Subject: fixed a nasty bug in the handling of "local_name" when setting the X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/e78733d9756ba4e0f28931fc9b811a2277cf803c fixed a nasty bug in the handling of "local_name" when setting the permissions on directories after a transfer. --- diff --git a/receiver.c b/receiver.c index 2b8869d1..6361d21b 100644 --- a/receiver.c +++ b/receiver.c @@ -477,7 +477,7 @@ int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen) for (i = 0; i < flist->count; i++) { file = flist->files[i]; if (!file->basename || !S_ISDIR(file->mode)) continue; - recv_generator(f_name(file),flist,i,-1); + recv_generator(local_name?local_name:f_name(file),flist,i,-1); } if (verbose > 2)