[PATCH] Hal privilige seperation
Sjoerd Simons
sjoerd at luon.net
Fri Jan 20 11:45:04 PST 2006
On Fri, Jan 20, 2006 at 09:58:09AM -0800, Artem Kachitchkine wrote:
> Sjoerd,
>
> >+ fprintf (stderr, "\n" "usage : hald [--daemon=yes|no]
> >[--verbose=yes|no] [--help] [--with-runner=location]\n");
>
> --with-runner is shown as an optional argument, yet I don't see the
> default value for runner_location in the code:
>
> >+ char *runner_location = NULL;
> ...
> >+ } else if (strcmp (opt, "with-runner") == 0) {
> >+ runner_location = strdup(optarg);
> ...
> >+ /* Start the runner helper daemon */
> >+ if (!hald_runner_start_runner(runner_location)) {
> >+ return 1;
> >+ }
If NULL is passed to hald_runner_start_runner it will start it from the
standard location:
if (runner_location == NULL) {
runner_location = g_strdup_printf("%s/hald-runner", PACKAGE_LIBEXEC_DIR);
Sjoerd
--
A mathematician is a device for turning coffee into theorems.
-- P. Erdos
More information about the hal
mailing list