/[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 400 Revision 401
36 if (interactive) 36 if (interactive)
37 setenv(ENV_SANDBOX_WORKDIR, sandbox_info->work_dir, 1); 37 setenv(ENV_SANDBOX_WORKDIR, sandbox_info->work_dir, 1);
38 } 38 }
39 39
40 /* Do not resolve symlinks, etc .. libsandbox will handle that. */ 40 /* Do not resolve symlinks, etc .. libsandbox will handle that. */
41 if (!rc_is_dir(VAR_TMPDIR, TRUE)) { 41 if (!rc_is_dir(VAR_TMPDIR, true)) {
42 perror("sandbox: Failed to get var_tmp_dir"); 42 perror("sandbox: Failed to get var_tmp_dir");
43 return -1; 43 return -1;
44 } 44 }
45 snprintf(sandbox_info->var_tmp_dir, SB_PATH_MAX, "%s", VAR_TMPDIR); 45 snprintf(sandbox_info->var_tmp_dir, SB_PATH_MAX, "%s", VAR_TMPDIR);
46 46
89 char *beep_count_env = NULL; 89 char *beep_count_env = NULL;
90 int i, color, beep_count = 0; 90 int i, color, beep_count = 0;
91 off_t len = 0; 91 off_t len = 0;
92 char *buffer = NULL; 92 char *buffer = NULL;
93 93
94 if (!rc_is_file(sandbox_log, FALSE)) { 94 if (!rc_is_file(sandbox_log, false)) {
95 perror("sandbox: Log file is not a regular file"); 95 perror("sandbox: Log file is not a regular file");
96 return 0; 96 return 0;
97 } 97 }
98 98
99 len = rc_get_size(sandbox_log, TRUE); 99 len = rc_get_size(sandbox_log, true);
100 if (0 == len) 100 if (0 == len)
101 return 0; 101 return 0;
102 102
103 sandbox_log_file = sb_open(sandbox_log, O_RDONLY, 0); 103 sandbox_log_file = sb_open(sandbox_log, O_RDONLY, 0);
104 if (-1 == sandbox_log_file) { 104 if (-1 == sandbox_log_file) {

Legend:
Removed from v.400  
changed lines
  Added in v.401

  ViewVC Help
Powered by ViewVC 1.1.20