Changeset 2402 in MondoRescue for branches/2.2.9/mondo
- Timestamp:
- Sep 16, 2009, 1:04:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-filelist.c
r2369 r2402 1348 1348 time_t this_time; 1349 1349 1350 /* dir is needed when we pass it to the shell */ 1350 1351 dir = mr_stresc(dir1, "`$\\\"(){}'[]&*?|!#~", '\\'); 1351 1352 p = strrchr(dir, '/'); … … 1383 1384 1 + atol(call_program_and_get_last_line_of_output(tmp)); 1384 1385 paranoid_free(tmp); 1385 sprintf(name_of_evalcall_form, "Making catalog of %s", dir );1386 sprintf(name_of_evalcall_form, "Making catalog of %s", dir1); 1386 1387 open_evalcall_form(name_of_evalcall_form); 1387 1388 find_skeleton_marker[0] = '\0'; … … 1409 1410 #ifndef _XWIN 1410 1411 if (!g_text_mode) { 1411 mr_asprintf(&tmp, "Reading %-68s", dir );1412 mr_asprintf(&tmp, "Reading %-68s", dir1); 1412 1413 newtDrawRootText(0, g_noof_rows - 3, tmp); 1413 1414 paranoid_free(tmp); … … 1427 1428 mr_asprintf(&skip_these, " %s ", sth); 1428 1429 } 1429 mr_asprintf(&new_with_spaces, " %s ", dir );1430 if ((dip = opendir(dir )) == NULL) {1431 mr_asprintf(&tmp,"opendir %s", dir );1430 mr_asprintf(&new_with_spaces, " %s ", dir1); 1431 if ((dip = opendir(dir1)) == NULL) { 1432 mr_asprintf(&tmp,"opendir %s", dir1); 1432 1433 log_OS_error(tmp); 1433 1434 paranoid_free(tmp); 1434 1435 } else if (strstr(skip_these, new_with_spaces)) { 1435 fprintf(fout, "%s\n", dir ); // if excluded dir then print dir ONLY1436 fprintf(fout, "%s\n", dir1); // if excluded dir then print dir ONLY 1436 1437 } else { 1437 fprintf(fout, "%s\n", dir );1438 fprintf(fout, "%s\n", dir1); 1438 1439 while ((dit = readdir(dip)) != NULL) { 1439 1440 i++; 1440 if (strcmp(dir , "/")) {1441 mr_asprintf(&new,"%s/%s",dir ,dit->d_name);1441 if (strcmp(dir1, "/")) { 1442 mr_asprintf(&new,"%s/%s",dir1,dit->d_name); 1442 1443 } else { 1443 mr_asprintf(&new,"%s%s",dir ,dit->d_name);1444 mr_asprintf(&new,"%s%s",dir1,dit->d_name); 1444 1445 } 1445 1446 paranoid_free(new_with_spaces);
Note:
See TracChangeset
for help on using the changeset viewer.