get rid of annoying symlink error messages
authorAndrew Tridgell <tridge@samba.org>
Fri, 23 Jun 2000 13:54:08 +0000 (13:54 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 23 Jun 2000 13:54:08 +0000 (13:54 +0000)
generator.c

index f0d23ea..a6a9a5a 100644 (file)
@@ -246,8 +246,8 @@ void recv_generator(char *fname,struct file_list *flist,int i,int f_out)
                                        return;
                                }
                        }
+                       delete_file(fname);
                }
-               delete_file(fname);
                if (do_symlink(file->link,fname) != 0) {
                        rprintf(FERROR,"symlink %s -> %s : %s\n",
                                fname,file->link,strerror(errno));