Changeset 1103 in MondoRescue for branches/stable/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Feb 6, 2007, 11:10:01 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-filelist.c
r1082 r1103 420 420 } 421 421 filelist->ch = '\0'; 422 mr_free( filelist);422 mr_free((void*) filelist); 423 423 depth--; 424 424 if (depth == 0) { … … 429 429 430 430 431 int call_exe_and_pipe_output_to_fd(char *sys call, FILE * pout)431 int call_exe_and_pipe_output_to_fd(char *sys_call, FILE * pout) 432 432 { 433 433 FILE *pattr; 434 434 char *tmp; 435 pattr = popen(sys call, "r");435 pattr = popen(sys_call, "r"); 436 436 if (!pattr) { 437 log_msg(1, "Failed to open fattr() %s", sys call);437 log_msg(1, "Failed to open fattr() %s", sys_call); 438 438 return (1); 439 439 } 440 440 if (feof(pattr)) { 441 log_msg(1, "Failed to call fattr() %s", sys call);441 log_msg(1, "Failed to call fattr() %s", sys_call); 442 442 paranoid_pclose(pattr); 443 443 return (2); … … 461 461 FILE *pout; 462 462 char *pout_command; 463 char *sys call;463 char *sys_call; 464 464 char *file_to_analyze; 465 465 char *strtmp = NULL; … … 487 487 log_msg(8, "Analyzing %s", file_to_analyze); 488 488 asprintf(&strtmp, syscall_sprintf, mr_stresc(file_to_analyze, "`$\\\"", '\\')); 489 asprintf(&sys call, "%s 2>> /dev/null", strtmp); // " MONDO_LOGFILE);489 asprintf(&sys_call, "%s 2>> /dev/null", strtmp); // " MONDO_LOGFILE); 490 490 mr_free(strtmp); 491 call_exe_and_pipe_output_to_fd(sys call, pout);492 mr_free(sys call);491 call_exe_and_pipe_output_to_fd(sys_call, pout); 492 mr_free(sys_call); 493 493 } 494 494 paranoid_fclose(fin);
Note:
See TracChangeset
for help on using the changeset viewer.