diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2017-08-11 20:43:00 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2017-08-11 20:43:00 +0000 |
commit | bae9303db19de5ca88b05c79c500e2d8c1201e77 (patch) | |
tree | eaff5c4210d813463b6527522c3e45c8f3acbe19 /usr.bin/ctfdump | |
parent | 1032ac6df2ad42650a50ec6b9c5a37c822facb9d (diff) |
move pledge after setlocale as suggested by tb@
Diffstat (limited to 'usr.bin/ctfdump')
-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': |