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

Diff of /trunk/src/sandbox.c

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

Revision 145 Revision 146
78 /* Generate sandbox bashrc path */ 78 /* Generate sandbox bashrc path */
79 get_sandbox_rc(sandbox_info->sandbox_rc); 79 get_sandbox_rc(sandbox_info->sandbox_rc);
80 80
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)) {
84 if (-1 == unlink(sandbox_info->sandbox_log)) {
85 perror("sandbox: Could not unlink old log file");
86 exit(EXIT_FAILURE);
87 }
88 }
83 89
84 /* Generate sandbox debug log full path */ 90 /* Generate sandbox debug log full path */
85 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))
93 if (-1 == unlink(sandbox_info->sandbox_debug_log)) {
94 perror("sandbox: Could not unlink old debug log file");
95 exit(EXIT_FAILURE);
96 }
97 }
86 98
87 return 0; 99 return 0;
88} 100}
89 101
90int print_sandbox_log(char *sandbox_log) 102int print_sandbox_log(char *sandbox_log)

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

  ViewVC Help
Powered by ViewVC 1.1.20