Changeset 2444 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Sep 30, 2009, 4:44:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-filelist.c
r2420 r2444 29 29 30 30 31 extern ssize_t getline(char **lineptr, size_t * n, FILE * stream);32 31 extern char *MONDO_LOGFILE; 33 32 … … 1347 1346 /* dir is needed when we pass it to the shell */ 1348 1347 dir = mr_stresc(dir1, "`$\\\"(){}'[]&*?|!#~", '\\'); 1349 p = strrchr(dir , '/');1348 p = strrchr(dir1, '/'); 1350 1349 if (p) { 1351 1350 if (!strcmp(p, "/.") || !strcmp(p, "/..")) { … … 1428 1427 mr_free(tmp); 1429 1428 } else if (strstr(skip_these, new_with_spaces)) { 1429 log_msg(10, "Found dir ***%s**** excluded", dir1); 1430 1430 fprintf(fout, "%s\n", dir1); // if excluded dir then print dir ONLY 1431 1431 } else { 1432 log_msg(10, "Found dir ***%s**** parsed", dir1); 1432 1433 fprintf(fout, "%s\n", dir1); 1433 1434 while ((dit = readdir(dip)) != NULL) { … … 1442 1443 if (strstr(skip_these, new_with_spaces)) { 1443 1444 fprintf(fout, "%s\n", new); 1445 log_msg(10, "Found child dir ***%s**** excluded", new); 1444 1446 mr_free(new_with_spaces); 1445 1447 } else { … … 1448 1450 if (!S_ISLNK(statbuf.st_mode) 1449 1451 && S_ISDIR(statbuf.st_mode)) { 1452 log_msg(10, "Found child dir ***%s**** parsed", new); 1450 1453 open_and_list_dir(new, skip_these, fout, time_of_last_full_backup); 1451 1454 } else { 1452 1455 if (time_of_last_full_backup == 0 || time_of_last_full_backup < statbuf.st_ctime) { 1456 log_msg(10, "Found child file ***%s**** parsed", new); 1453 1457 fprintf(fout, "%s\n", new); 1454 1458 if ((counter++) > 128) {
Note:
See TracChangeset
for help on using the changeset viewer.