summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vipw
diff options
context:
space:
mode:
authormestre <mestre@openbsd.org>2016-11-07 23:04:55 +0000
committermestre <mestre@openbsd.org>2016-11-07 23:04:55 +0000
commit3454a07b6938585db6e0a353cb5fa4aec608ecde (patch)
treea15997a7b5c8c2810b036dadaf31b457dc12b706 /usr.sbin/vipw
parentReplace bzero(3) with memset(3) (diff)
downloadwireguard-openbsd-3454a07b6938585db6e0a353cb5fa4aec608ecde.tar.xz
wireguard-openbsd-3454a07b6938585db6e0a353cb5fa4aec608ecde.zip
- 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