ok
Florian Obser(flor...@openbsd.org) on 2017.03.23 12:02:52 +0000:
> ... the parser will bomb out anyway
>
> OK?
>
> diff --git main.c main.c
> index dde8e8b638e..4f977451bbc 100644
> --- main.c
> +++ main.c
> @@ -85,6 +85,9 @@ main(int argc, char *argv[])
> goto usage;
> }
>
> + if (getuid() != 0)
> + errx(EXIT_FAILURE, "must be run as root");
> +
> /* parse config file */
> if ((conf = parse_config(conffile, popts)) == NULL)
> exit(EXIT_FAILURE);
> @@ -100,9 +103,6 @@ main(int argc, char *argv[])
> argc--;
> argv++;
>
> - if (getuid() != 0)
> - errx(EXIT_FAILURE, "must be run as root");
> -
> if (domain->cert != NULL) {
> if ((certdir = dirname(domain->cert)) != NULL) {
> if ((certdir = strdup(certdir)) == NULL)
>
>
> --
> I'm not entirely sure you are real.
>