summaryrefslogtreecommitdiff
path: root/usr.bin/aucat
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2016-06-02 05:07:51 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2016-06-02 05:07:51 +0000
commit28d41ee9d3bf0df3a22dc6701e9b3b59ed4cb179 (patch)
tree5c157ae9f15361f070b5eb29d8ce64f3310eda6b /usr.bin/aucat
parentb474d5f4c5c0a4bdf34c3a0dae4df082a21ff02c (diff)
set exit status to 1 if -n is used without -i and -o
Diffstat (limited to 'usr.bin/aucat')
-rw-r--r--usr.bin/aucat/aucat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/aucat/aucat.c b/usr.bin/aucat/aucat.c
index 0333ed66a55..ef784580dfa 100644
--- a/usr.bin/aucat/aucat.c
+++ b/usr.bin/aucat/aucat.c
@@ -1390,7 +1390,7 @@ main(int argc, char **argv)
}
if (mode != (SIO_PLAY | SIO_REC)) {
log_puts("both -i and -o required\n");
- return 0;
+ return 1;
}
if (!offline())
return 1;