fixed a nasty bug in the handling of "local_name" when setting the
authorAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 1999 10:56:18 +0000 (10:56 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 1999 10:56:18 +0000 (10:56 +0000)
permissions on directories after a transfer.

receiver.c

index 2b8869d..6361d21 100644 (file)
@@ -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)