opendoas

A portable version of the OpenBSD `doas` command
git clone https://pi.duncano.de/git/opendoas.git
Log | Files | Refs | README | LICENSE

commit fc4df78fd381731e8125ddd7afa251bd00975e60
parent 36110508c0e1ca46a4674ebf1937beeeafb5daa0
Author: Philip K <philippija@gmail.com>
Date:   Mon,  5 Sep 2016 18:26:24 +0200

Print -a flag in usage() only if HAVE_BSD_AUTH_H

Closes: #11 [via git-merge-pr]

Diffstat:
doas.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/doas.c b/doas.c @@ -46,8 +46,11 @@ version(void) static void __dead usage(void) { - fprintf(stderr, "usage: doas [-nsv] [-a style] [-C config] [-u user]" - " command [args]\n"); + fprintf(stderr, "usage: doas [-nsv] " +#ifdef HAVE_BSD_AUTH_H + "[-a style] " +#endif + "[-C config] [-u user] command [args]\n"); exit(1); }