diff options
author | 2017-08-11 20:42:59 +0000 | |
---|---|---|
committer | 2017-08-11 20:42:59 +0000 | |
commit | 26e2f88615d9b45d76cfc4153041d454a1fc6ae8 (patch) | |
tree | ab24b879c41bef3863b89f1a7744e1907580c5fa | |
parent | punctuation; (diff) | |
download | wireguard-openbsd-26e2f88615d9b45d76cfc4153041d454a1fc6ae8.tar.xz wireguard-openbsd-26e2f88615d9b45d76cfc4153041d454a1fc6ae8.zip |
move pledge after setlocale as suggested by tb@
-rw-r--r-- | usr.bin/ctfdump/ctfdump.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ctfdump/ctfdump.c b/usr.bin/ctfdump/ctfdump.c index bbdd7604100..d5108f56f07 100644 --- a/usr.bin/ctfdump/ctfdump.c +++ b/usr.bin/ctfdump/ctfdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ctfdump.c,v 1.3 2017/08/11 18:22:22 jasper Exp $ */ +/* $OpenBSD: ctfdump.c,v 1.4 2017/08/11 20:42:59 jasper Exp $ */ /* * Copyright (c) 2016 Martin Pieuchot <mpi@openbsd.org> @@ -80,11 +80,11 @@ main(int argc, char *argv[]) uint8_t flags = 0; int ch, error = 0; + setlocale(LC_ALL, ""); + if (pledge("stdio rpath", NULL) == -1) err(1, "pledge"); - setlocale(LC_ALL, ""); - while ((ch = getopt(argc, argv, "dfhlst")) != -1) { switch (ch) { case 'd': |