summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@fingolfin.org>2021-08-20 16:09:59 -0700
committerRobert Mustacchi <rm@fingolfin.org>2021-08-23 17:14:28 -0700
commit6881023fc43e5c6ac49e78f526f6cce9b68d69a3 (patch)
treef2605e30ab2080d6b709dafa093931a537301e0e
parenta2027c5d4c477546faea39a790b019c3480c9b9b (diff)
downloadillumos-joyent-6881023fc43e5c6ac49e78f526f6cce9b68d69a3.tar.gz
14030 udf poorly handles its usage
Reviewed by: Peter Tribble <peter.tribble@gmail.com> Reviewed by: Jason King <jason.brian.king@gmail.com> Reviewed by: Sebastian Wiedenroth <wiedi@frubar.net> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/cmd/amdzen/udf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/cmd/amdzen/udf.c b/usr/src/cmd/amdzen/udf.c
index 604e0b4802..8c21b02b74 100644
--- a/usr/src/cmd/amdzen/udf.c
+++ b/usr/src/cmd/amdzen/udf.c
@@ -10,7 +10,7 @@
*/
/*
- * Copyright 2020 Oxide Computer Company
+ * Copyright 2021 Oxide Computer Company
*/
/*
@@ -87,6 +87,7 @@ main(int argc, char *argv[])
warnx("missing required arguments");
(void) fprintf(stderr, "Usage: udf [-l] -d device -f func -i "
"inst -r reg\n");
+ exit(2);
}
errno = 0;