/[path-sandbox]/trunk/sandbox.c
Gentoo

Diff of /trunk/sandbox.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 146 Revision 147
81 /* Generate sandbox log full path */ 81 /* Generate sandbox log full path */
82 get_sandbox_log(sandbox_info->sandbox_log); 82 get_sandbox_log(sandbox_info->sandbox_log);
83 if (1 == exists(sandbox_info->sandbox_log)) { 83 if (1 == exists(sandbox_info->sandbox_log)) {
84 if (-1 == unlink(sandbox_info->sandbox_log)) { 84 if (-1 == unlink(sandbox_info->sandbox_log)) {
85 perror("sandbox: Could not unlink old log file"); 85 perror("sandbox: Could not unlink old log file");
86 exit(EXIT_FAILURE); 86 return -1;
87 } 87 }
88 } 88 }
89 89
90 /* Generate sandbox debug log full path */ 90 /* Generate sandbox debug log full path */
91 get_sandbox_debug_log(sandbox_info->sandbox_debug_log); 91 get_sandbox_debug_log(sandbox_info->sandbox_debug_log);
92 if (1 == exists(sandbox_info->sandbox_debug_log)) 92 if (1 == exists(sandbox_info->sandbox_debug_log)) {
93 if (-1 == unlink(sandbox_info->sandbox_debug_log)) { 93 if (-1 == unlink(sandbox_info->sandbox_debug_log)) {
94 perror("sandbox: Could not unlink old debug log file"); 94 perror("sandbox: Could not unlink old debug log file");
95 exit(EXIT_FAILURE); 95 return -1;
96 } 96 }
97 } 97 }
98 98
99 return 0; 99 return 0;
100} 100}
408 /* determine the location of all the sandbox support files */ 408 /* determine the location of all the sandbox support files */
409 if (print_debug) 409 if (print_debug)
410 printf("Detection of the support files.\n"); 410 printf("Detection of the support files.\n");
411 411
412 if (-1 == sandbox_setup(&sandbox_info)) { 412 if (-1 == sandbox_setup(&sandbox_info)) {
413 perror("sandbox: Failed to setup sandbox"); 413 fprintf(stderr, "sandbox: Failed to setup sandbox.");
414 exit(EXIT_FAILURE); 414 exit(EXIT_FAILURE);
415 } 415 }
416 416
417 /* verify the existance of required files */ 417 /* verify the existance of required files */
418 if (print_debug) 418 if (print_debug)

Legend:
Removed from v.146  
changed lines
  Added in v.147

  ViewVC Help
Powered by ViewVC 1.1.20