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

Diff of /trunk/sandbox_futils.c

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

Revision 100 Revision 101
116 (sandbox_log_env == NULL ? "" : "-"), 116 (sandbox_log_env == NULL ? "" : "-"),
117 getpid(), LOG_FILE_EXT); 117 getpid(), LOG_FILE_EXT);
118 return (strdup(path)); 118 return (strdup(path));
119} 119}
120 120
121SB_STATIC int get_tmp_dir(char *tmp_dir)
122{
123 if (NULL == realpath(getenv(ENV_TMPDIR) ? getenv(ENV_TMPDIR)
124 : TMPDIR,
125 tmp_dir)) {
126 return -1;
127 }
128
129 return 0;
130}
131
121SB_STATIC char *get_sandbox_debug_log(const char *tmp_dir) 132SB_STATIC char *get_sandbox_debug_log(const char *tmp_dir)
122{ 133{
123 char path[SB_PATH_MAX]; 134 char path[SB_PATH_MAX];
124 char *sandbox_debug_log_env = NULL; 135 char *sandbox_debug_log_env = NULL;
125 136

Legend:
Removed from v.100  
changed lines
  Added in v.101

  ViewVC Help
Powered by ViewVC 1.1.20