/[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 428 Revision 429
231 rc_log_domain(log_domain); 231 rc_log_domain(log_domain);
232 232
233 /* Only print info if called with no arguments .... */ 233 /* Only print info if called with no arguments .... */
234 if (argc < 2) 234 if (argc < 2)
235 print_debug = 1; 235 print_debug = 1;
236 else {
237 /* handle a few common options */
238 if (!strcmp(argv[1], "--version") || !strcmp(argv[1], "-V")) {
239 puts(
240 "Gentoo path sandbox\n"
241 " version: " PACKAGE_VERSION "\n"
242 " C lib: " LIBC_VERSION "\n"
243 " build: " __DATE__ " " __TIME__ "\n"
244 " contact: " PACKAGE_BUGREPORT " via http://bugs.gentoo.org/\n"
245 " rtld: "
246#ifdef BROKEN_RTLD_NEXT
247 "next is broken ;(\n"
248#else
249 "next is OK! :D\n"
250#endif
251 "\nconfigured with these options:\n"
252 SANDBOX_CONFIGURE_OPTS
253 );
254 return 0;
255 } else if (!strcmp(argv[1], "--help") || !strcmp(argv[1], "-h")) {
256 puts(
257 "Usage: sandbox [program [program args...]]\n"
258 "\n"
259 "Sandbox will start up a sandbox session and execute the specified program.\n"
260 "If no program is specified, an interactive shell is automatically launched.\n"
261 "You can use this to quickly test out sandbox behavior.\n"
262 "\n"
263 "Upon startup, initial settings are taken from these files / directories:\n"
264 "\t" SANDBOX_CONF_FILE "\n"
265 "\t" SANDBOX_CONFD_DIR "\n"
266 "\n"
267 "Contact: " PACKAGE_BUGREPORT " via http://bugs.gentoo.org/"
268 );
269 return 0;
270 }
271 }
236 272
237 if (print_debug) 273 if (print_debug)
238 puts(sandbox_banner); 274 puts(sandbox_banner);
239 275
240 /* check if a sandbox is already running */ 276 /* check if a sandbox is already running */

Legend:
Removed from v.428  
changed lines
  Added in v.429

  ViewVC Help
Powered by ViewVC 1.1.20