opendoas

my fork of doas with custom prompt
git clone git://git.kocotian.pl/opendoas.git
Log | Files | Refs | README | LICENSE

commit 77e474fb8dbb860668900984f44377492ce007e8
parent 365f92247952a8be6d8e40b6770589dbe169825c
Author: Duncaen <mail@duncano.de>
Date:   Wed, 30 Jan 2019 21:19:37 +0100

doas: remove v flag, not neccessary, upstream doesn't have it and __DATE__ is bad for reproducible builds

Diffstat:
Mdoas.c | 16+---------------
1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/doas.c b/doas.c @@ -38,16 +38,9 @@ #include "doas.h" static void __dead -version(void) -{ - fprintf(stderr, "doas: version %s built %s\n", VERSION, __DATE__); - exit(1); -} - -static void __dead usage(void) { - fprintf(stderr, "usage: doas [-Lnsv] " + fprintf(stderr, "usage: doas [-Lns] " #ifdef HAVE_BSD_AUTH_H "[-a style] " #endif @@ -336,7 +329,6 @@ main(int argc, char **argv) int i, ch; int sflag = 0; int nflag = 0; - int vflag = 0; char cwdpath[PATH_MAX]; const char *cwd; char **envp; @@ -385,9 +377,6 @@ main(int argc, char **argv) case 's': sflag = 1; break; - case 'v': - vflag = 1; - break; default: usage(); break; @@ -396,9 +385,6 @@ main(int argc, char **argv) argv += optind; argc -= optind; - if (vflag) - version(); - if (confpath) { if (sflag) usage();