Changeset 2198 in MondoRescue for branches/2.2.9/mondo/src/common
- Timestamp:
- May 12, 2009, 2:56:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-filelist.c
r2190 r2198 1349 1349 * @bug Return value should be @c void. 1350 1350 */ 1351 int open_and_list_dir(char *dir , char *sth, FILE * fout,1351 int open_and_list_dir(char *dir1, char *sth, FILE * fout, 1352 1352 time_t time_of_last_full_backup) 1353 1353 { … … 1359 1359 char *new; 1360 1360 char *tmp; 1361 char *dir = NULL; 1361 1362 static int percentage = 0; 1362 1363 char *skip_these; … … 1377 1378 time_t this_time; 1378 1379 1380 dir = mr_stresc(dir1, "`$\\\"", '\\'); 1379 1381 p = strrchr(dir, '/'); 1380 1382 if (p) { … … 1398 1400 // 2.6 has /sys as a proc-type thing -- must be excluded 1399 1401 asprintf(&strtmp, 1400 "find %s-fstype mvfs -prune -o -fstype devpts -prune -o -fstype tmpfs -prune -o -fstype proc -prune -o -fstype sysfs -prune -o %s -type d -print > %s 2> /dev/null",1402 "find '%s' -fstype mvfs -prune -o -fstype devpts -prune -o -fstype tmpfs -prune -o -fstype proc -prune -o -fstype sysfs -prune -o %s -type d -print > %s 2> /dev/null", 1401 1403 dir, find_excludes, g_skeleton_filelist); 1402 1404 #else 1403 1405 // On BSD, for example, /sys is the kernel sources -- don't exclude 1404 1406 asprintf(&strtmp, 1405 "find %s-fstype mvfs -prune -o -path /proc -prune -o %s -type d -print > %s 2> /dev/null",1407 "find '%s' -fstype mvfs -prune -o -path /proc -prune -o %s -type d -print > %s 2> /dev/null", 1406 1408 dir, find_excludes, g_skeleton_filelist); 1407 1409 #endif … … 1423 1425 { 1424 1426 sprintf(find_skeleton_marker, 1425 "grep -Fv \"%s\"%s > %s.new 2> /dev/null", dir,1427 "grep -Fv '%s' %s > %s.new 2> /dev/null", dir, 1426 1428 g_skeleton_filelist, g_skeleton_filelist); 1427 1429 // log_msg(0, "fsm = %s", find_skeleton_marker); … … 1514 1516 paranoid_free(new_with_spaces); 1515 1517 paranoid_free(skip_these); 1518 paranoid_free(dir); 1516 1519 1517 1520 if (dip) {
Note:
See TracChangeset
for help on using the changeset viewer.