Changeset 1663 in MondoRescue for branches/stable/mondo/src/common/newt-specific.c
- Timestamp:
- Sep 27, 2007, 12:21:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/newt-specific.c
r1627 r1663 1282 1282 char *source_file) { 1283 1283 int i; 1284 int j = 0; 1284 1285 bool done; 1285 1286 char *tmp = NULL; 1287 char *tmp1 = NULL; 1286 1288 size_t n = 0; 1287 1289 FILE *fin = NULL; … … 1298 1300 return (1); 1299 1301 } 1302 1303 asprintf(&tmp1,"%s/icantfindthesefiles.txt",bkpinfo->tmpdir); 1304 if (!(fout = fopen(tmp1, "a"))) { 1305 mr_msg(2, "Can't write to %s", tmp1); 1306 return(1); 1307 } 1308 1300 1309 mr_msg(2, "Loading %s", source_file); 1301 1310 for (filelist->entries = 0; filelist->entries <= ARBITRARY_MAXIMUM; … … 1316 1325 goto god_i_hate_gotos; 1317 1326 } 1318 if (!does_file_exist(tmp)) { 1327 if (!does_file_exist(tmp) && !feof(fin)) { 1328 fprintf(fout, "%s\n", tmp); 1329 j++; 1319 1330 goto god_i_hate_gotos; 1320 1331 } … … 1329 1340 1330 1341 paranoid_fclose(fin); 1342 paranoid_fclose(fout); 1343 1344 if (j > 0) { 1345 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); 1346 } 1347 mr_free(tmp1); 1348 1331 1349 if (filelist->entries >= ARBITRARY_MAXIMUM) { 1332 1350 log_to_screen(_("Arbitrary limits suck, man!"));
Note:
See TracChangeset
for help on using the changeset viewer.