/[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 105 Revision 108
166 : PORTAGE_TMPDIR, 166 : PORTAGE_TMPDIR,
167 sandbox_info->portage_tmp_dir)) { 167 sandbox_info->portage_tmp_dir)) {
168 perror(">>> get portage_tmp_dir"); 168 perror(">>> get portage_tmp_dir");
169 return -1; 169 return -1;
170 } 170 }
171 setenv(ENV_PORTAGE_TMPDIR, sandbox_info->portage_tmp_dir, 1);
171 172
172 if (NULL == realpath(VAR_TMPDIR, sandbox_info->var_tmp_dir)) { 173 if (NULL == realpath(VAR_TMPDIR, sandbox_info->var_tmp_dir)) {
173 perror(">>> get var_tmp_dir"); 174 perror(">>> get var_tmp_dir");
174 return -1; 175 return -1;
175 } 176 }
177 if (-1 == get_tmp_dir(sandbox_info->tmp_dir)) { 178 if (-1 == get_tmp_dir(sandbox_info->tmp_dir)) {
178 perror(">>> get tmp_dir"); 179 perror(">>> get tmp_dir");
179 return -1; 180 return -1;
180 } 181 }
181 tmp_dir = sandbox_info->tmp_dir; 182 tmp_dir = sandbox_info->tmp_dir;
183 setenv(ENV_TMPDIR, tmp_dir, 1);
182 184
183 sandbox_info->home_dir = getenv("HOME"); 185 sandbox_info->home_dir = getenv("HOME");
184 if (!sandbox_info->home_dir) { 186 if (!sandbox_info->home_dir) {
185 sandbox_info->home_dir = tmp_dir; 187 sandbox_info->home_dir = tmp_dir;
186 setenv("HOME", sandbox_info->home_dir, 1); 188 setenv("HOME", sandbox_info->home_dir, 1);

Legend:
Removed from v.105  
changed lines
  Added in v.108

  ViewVC Help
Powered by ViewVC 1.1.20