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 f0d23ea6b1a5a45fb0f17e8f3914a9425e5f99a1..a6a9a5a914095b0651508db68b90307b428c4b42 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));