Fixed a line-ordering problem.
authorWayne Davison <wayned@samba.org>
Sat, 26 Feb 2005 19:11:57 +0000 (19:11 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 26 Feb 2005 19:11:57 +0000 (19:11 +0000)
generator.c

index 9e53be1..1c3ceaa 100644 (file)
@@ -252,8 +252,8 @@ static void delete_in_dir(struct file_list *flist, char *fbuf,
                if (!dirlist->files[i]->basename)
                        continue;
                if (flist_find(flist, dirlist->files[i]) < 0) {
-                       f_name_to(dirlist->files[i], delbuf);
                        int mode = dirlist->files[i]->mode;
+                       f_name_to(dirlist->files[i], delbuf);
                        if (delete_item(delbuf, mode, DEL_FORCE_RECURSE) < 0)
                                break;
                }