Changeset 1106 in MondoRescue for trunk/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Feb 7, 2007, 11:55:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/common/libmondo-filelist.c
r1086 r1106 395 395 396 396 397 int call_exe_and_pipe_output_to_fd(char *sys call, FILE * pout)397 int call_exe_and_pipe_output_to_fd(char *sys_call, FILE * pout) 398 398 { 399 399 FILE *pattr; … … 401 401 size_t n = 0; 402 402 403 pattr = popen(sys call, "r");403 pattr = popen(sys_call, "r"); 404 404 if (!pattr) { 405 mr_msg(1, "Failed to open fattr() %s", sys call);405 mr_msg(1, "Failed to open fattr() %s", sys_call); 406 406 return (1); 407 407 } 408 408 if (feof(pattr)) { 409 mr_msg(1, "Failed to call fattr() %s", sys call);409 mr_msg(1, "Failed to call fattr() %s", sys_call); 410 410 paranoid_pclose(pattr); 411 411 return (2); … … 426 426 FILE *pout; 427 427 char *pout_command; 428 char *sys call;428 char *sys_call; 429 429 char *file_to_analyze = NULL; 430 430 char *strtmp = NULL; … … 454 454 /* BERLIOS : to be checked */ 455 455 mr_asprintf(&strtmp, syscall_sprintf, mr_stresc(file_to_analyze, "`$\\\"", '\\')); 456 mr_asprintf(&sys call, "%s 2>> /dev/null", strtmp);456 mr_asprintf(&sys_call, "%s 2>> /dev/null", strtmp); 457 457 mr_free(strtmp); 458 call_exe_and_pipe_output_to_fd(sys call, pout);459 mr_free(sys call);458 call_exe_and_pipe_output_to_fd(sys_call, pout); 459 mr_free(sys_call); 460 460 } 461 461 paranoid_fclose(fin);
Note:
See TracChangeset
for help on using the changeset viewer.