aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip K <philippija@gmail.com>2016-09-05 18:26:24 +0200
committerDuncaen <mail@duncano.de>2016-09-06 02:57:10 +0200
commitfc4df78fd381731e8125ddd7afa251bd00975e60 (patch)
tree94e49eb7dc33da089cb77dbd1e78f46b039c56ee
parent36110508c0e1ca46a4674ebf1937beeeafb5daa0 (diff)
downloadopendoas-fc4df78fd381731e8125ddd7afa251bd00975e60.tar.gz
Print -a flag in usage() only if HAVE_BSD_AUTH_H
Closes: #11 [via git-merge-pr]
-rw-r--r--doas.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/doas.c b/doas.c
index fa0eafb..7494b07 100644
--- 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);
}