- Timestamp:
- Sep 26, 2007, 12:57:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/newt-specific.c
r1644 r1662 1484 1484 char *source_file) { 1485 1485 int i; 1486 int j = 0; 1486 1487 bool done; 1487 1488 char *tmp; 1488 FILE *fin; 1489 char *tmp1 = NULL; 1490 FILE *fin, *fout; 1489 1491 struct s_filelist_entry dummy_fle; 1490 1492 1491 malloc_string(tmp);1492 1493 assert(filelist != NULL); 1493 1494 assert_string_is_neither_NULL_nor_zerolength(source_file); … … 1498 1499 log_msg(2, "Can't open %s; therefore, cannot popup list", 1499 1500 source_file); 1500 paranoid_free(tmp);1501 1501 return (1); 1502 1502 } 1503 1504 asprintf(&tmp1,"%s/icantfindthesefiles.txt",bkpinfo->tmpdir); 1505 if (!(fout = fopen(tmp1, "a"))) { 1506 log_msg(2, "Can't write to %s", tmp1); 1507 return(1); 1508 } 1509 1510 malloc_string(tmp); 1503 1511 log_msg(2, "Loading %s", source_file); 1504 1512 for (filelist->entries = 0; filelist->entries <= ARBITRARY_MAXIMUM; … … 1519 1527 goto god_i_hate_gotos; 1520 1528 } 1521 if (!does_file_exist(tmp)) { 1529 if (!does_file_exist(tmp) && !feof(fin)) { 1530 j++; 1531 fprintf(fout, "%s\n", tmp); 1532 1522 1533 goto god_i_hate_gotos; 1523 1534 } … … 1530 1541 } 1531 1542 paranoid_fclose(fin); 1543 paranoid_fclose(fout); 1544 if (j > 0) { 1545 log_to_screen("%d files listed in %s/changed.files have been deleted since backup was made\nand are referenced in %s", j, bkpinfo->tmpdir,tmp1); 1546 } 1547 paranoid_free(tmp1); 1532 1548 if (filelist->entries >= ARBITRARY_MAXIMUM) { 1533 1549 log_to_screen("Arbitrary limits suck, man!");
Note:
See TracChangeset
for help on using the changeset viewer.