Changeset 783 in MondoRescue for trunk/mondo/mondo/common/libmondo-filelist.c
- Timestamp:
- Aug 31, 2006, 5:09:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-filelist.c
r729 r783 266 266 i = 0; 267 267 } 268 /* BERLIOS: Useless with getline269 if (i > MAX_STR_LEN - 1) {270 incoming[MAX_STR_LEN - 30] = '\0';271 log_msg(1, "Warning - truncating file %s's name", incoming);272 err++;273 }274 */275 268 if (incoming[i] < 32) { 276 269 incoming[i] = '\0'; … … 717 710 { 718 711 /*@ buffers ***************************************************** */ 719 char val_sz[MAX_STR_LEN];720 char *cfg_fname ;712 char *val_sz = NULL; 713 char *cfg_fname = NULL; 721 714 722 715 /*@ long ******************************************************** */ 723 int val_i ;716 int val_i = 0; 724 717 725 718 /*@ end vars **************************************************** */ … … 730 723 read_cfg_var(cfg_fname, "last-filelist-number", val_sz); 731 724 val_i = atoi(val_sz); 725 paranoid_free(val_sz); 726 732 727 if (val_i <= 0) { 733 728 val_i = 500; … … 1356 1351 asprintf(&tmp, 1357 1352 "find %s -maxdepth %d -fstype mvfs -prune -o -path /proc -prune -o -path /sys -prune -o -path /dev/shm -prune -o -path /media/floppy -prune -o -type d -a -print > %s 2> /dev/null", 1358 dir, MAX_SKEL_DEPTH, g_skeleton_filelist);1353 dir, MAX_SKEL_DEPTH, skeleton_filelist); 1359 1354 #else 1360 1355 // On BSD, for example, /sys is the kernel sources -- don't exclude 1361 1356 asprintf(&tmp, 1362 1357 "find %s -maxdepth %d -fstype mvfs -prune -o -path /proc -prune -o -type d -a -print > %s 2> /dev/null", 1363 dir, MAX_SKEL_DEPTH, g_skeleton_filelist);1358 dir, MAX_SKEL_DEPTH, skeleton_filelist); 1364 1359 #endif 1365 1360 system(tmp); … … 1435 1430 /* BERLIOS: Old code 1436 1431 new_with_spaces[0] = ' '; 1437 str cpy(new_with_spaces + 1, new);1438 str cat(new_with_spaces, " ");1432 str-cpy(new_with_spaces + 1, new); 1433 str-cat(new_with_spaces, " "); 1439 1434 */ 1440 1435 if (strstr(skip_these, new_with_spaces)) { … … 1504 1499 { 1505 1500 static char sz_res[MAX_STR_LEN]; 1506 char *p ;1501 char *p = NULL; 1507 1502 bool in_quotes = FALSE; 1508 1503
Note:
See TracChangeset
for help on using the changeset viewer.