diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2017-03-09 21:25:02 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2017-03-09 21:25:02 +0000 |
commit | 2bac25e3ea3fcfff03a0e6bfae0e9ef2b0b55a79 (patch) | |
tree | 227d01168edae06a34bc806988ffadbcf2889a1e /usr.bin/doas | |
parent | ce0bfb6fce79bdfd67dd4631ab069317487dc3df (diff) |
exit test for -L was reversed. spotted by Michael Forney
Diffstat (limited to 'usr.bin/doas')
-rw-r--r-- | usr.bin/doas/doas.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/doas/doas.c b/usr.bin/doas/doas.c index 98f06aa1165..328834cc461 100644 --- a/usr.bin/doas/doas.c +++ b/usr.bin/doas/doas.c @@ -1,4 +1,4 @@ -/* $OpenBSD: doas.c,v 1.69 2017/01/14 18:51:24 tedu Exp $ */ +/* $OpenBSD: doas.c,v 1.70 2017/03/09 21:25:01 tedu Exp $ */ /* * Copyright (c) 2015 Ted Unangst <tedu@openbsd.org> * @@ -282,7 +282,7 @@ main(int argc, char **argv) i = open("/dev/tty", O_RDWR); if (i != -1) ioctl(i, TIOCCLRVERAUTH); - exit(i != -1); + exit(i == -1); case 'u': if (parseuid(optarg, &target) != 0) errx(1, "unknown user"); |