opendoas

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

commit 563f8b1b5a08eddbc5a116dc5fff4bffb03be019
parent 84b171f3d6944dd793c81e474724f5210764b81c
Author: Jean-Marie Cannie <jmc@openbsd.org>
Date:   Tue, 21 Jul 2015 17:49:33 +0000

options w/o args go first in SYNOPSIS, and add -C to usage();

Diffstat:
doas.1 | 4++--
doas.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doas.1 b/doas.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: doas.1,v 1.8 2015/07/21 11:04:06 zhuk Exp $ +.\" $OpenBSD: doas.1,v 1.9 2015/07/21 16:12:04 tedu Exp $ .\" .\"Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> .\" @@ -21,8 +21,8 @@ .Nd execute commands as another user .Sh SYNOPSIS .Nm doas -.Op Fl C Ar config .Op Fl s +.Op Fl C Ar config .Op Fl u Ar user .Ar command .Op Ar args diff --git a/doas.c b/doas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: doas.c,v 1.16 2015/07/21 16:12:04 tedu Exp $ */ +/* $OpenBSD: doas.c,v 1.17 2015/07/21 16:15:20 tedu Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -36,7 +36,7 @@ static void __dead usage(void) { - fprintf(stderr, "usage: doas [-s] [-u user] command [args]\n"); + fprintf(stderr, "usage: doas [-s] [-C config] [-u user] command [args]\n"); exit(1); }