summaryrefslogtreecommitdiff
path: root/usr.sbin/vipw
diff options
context:
space:
mode:
authorRicardo Mestre <mestre@cvs.openbsd.org>2016-11-07 23:04:56 +0000
committerRicardo Mestre <mestre@cvs.openbsd.org>2016-11-07 23:04:56 +0000
commitc9cceb313cca58a2120a280891bd1d2a1ab8d679 (patch)
tree9e344892d22b4a28d7dccebb20a857d4b2074f0b /usr.sbin/vipw
parent696e5030bac51461aebf1a6e0027d0b696c7d686 (diff)
- Remove -? since parameters don't make sense for this command (but still keep
default case to have usage() explaining that) - Replace exit(3) with return to enable SSP
Diffstat (limited to 'usr.sbin/vipw')
-rw-r--r--usr.sbin/vipw/vipw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/vipw/vipw.c b/usr.sbin/vipw/vipw.c
index 3838b9ab51d..3339be1137f 100644
--- a/usr.sbin/vipw/vipw.c
+++ b/usr.sbin/vipw/vipw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vipw.c,v 1.18 2015/10/16 22:54:15 deraadt Exp $ */
+/* $OpenBSD: vipw.c,v 1.19 2016/11/07 23:04:55 mestre Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
@@ -53,7 +53,6 @@ main(int argc, char *argv[])
while ((ch = getopt(argc, argv, "")) != -1) {
switch (ch) {
- case '?':
default:
usage();
}
@@ -90,7 +89,8 @@ main(int argc, char *argv[])
break;
pw_prompt();
}
- exit(0);
+
+ return 0;
}
void