diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-06-02 05:07:51 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2016-06-02 05:07:51 +0000 |
commit | 28d41ee9d3bf0df3a22dc6701e9b3b59ed4cb179 (patch) | |
tree | 5c157ae9f15361f070b5eb29d8ce64f3310eda6b /usr.bin/aucat/aucat.c | |
parent | b474d5f4c5c0a4bdf34c3a0dae4df082a21ff02c (diff) |
set exit status to 1 if -n is used without -i and -o
Diffstat (limited to 'usr.bin/aucat/aucat.c')
-rw-r--r-- | usr.bin/aucat/aucat.c | 2 |
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; |