/[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 139 Revision 140
77 sandbox_info->home_dir = tmp_dir; 77 sandbox_info->home_dir = tmp_dir;
78 setenv("HOME", sandbox_info->home_dir, 1); 78 setenv("HOME", sandbox_info->home_dir, 1);
79 } 79 }
80 80
81 /* Generate base sandbox path */ 81 /* Generate base sandbox path */
82 snprintf(sandbox_info->sandbox_dir, SB_PATH_MAX, "%s/", 82 get_sandbox_path(argv[0], sandbox_info->sandbox_dir);
83 get_sandbox_path(argv[0]));
84 83
85 /* Generate sandbox lib path */ 84 /* Generate sandbox lib path */
86 snprintf(sandbox_info->sandbox_lib, SB_PATH_MAX, "%s",
87 get_sandbox_lib(sandbox_info->sandbox_dir)); 85 get_sandbox_lib(sandbox_info->sandbox_lib);
88 86
89 /* Generate sandbox bashrc path */ 87 /* Generate sandbox bashrc path */
90 snprintf(sandbox_info->sandbox_rc, SB_PATH_MAX, "%s",
91 get_sandbox_rc(sandbox_info->sandbox_dir)); 88 get_sandbox_rc(sandbox_info->sandbox_rc);
92 89
93 /* Generate sandbox log full path */ 90 /* Generate sandbox log full path */
94 snprintf(sandbox_info->sandbox_log, SB_PATH_MAX, "%s", 91 get_sandbox_log(sandbox_info->sandbox_log);
95 get_sandbox_log());
96 92
97 /* Generate sandbox debug log full path */ 93 /* Generate sandbox debug log full path */
98 snprintf(sandbox_info->sandbox_debug_log, SB_PATH_MAX, "%s", 94 get_sandbox_debug_log(sandbox_info->sandbox_debug_log);
99 get_sandbox_debug_log());
100 95
101 return 0; 96 return 0;
102} 97}
103 98
104int print_sandbox_log(char *sandbox_log) 99int print_sandbox_log(char *sandbox_log)

Legend:
Removed from v.139  
changed lines
  Added in v.140

  ViewVC Help
Powered by ViewVC 1.1.20