diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2011-09-22 09:12:31 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2011-09-22 09:12:31 +0000 |
commit | 76c6b0eadf67e3f65ab6bd929c9593de8f800f3b (patch) | |
tree | e3663b724817c575d76f94827df428977ed9e08c /usr.sbin | |
parent | e75fff8e086f70b69819d45475075e23419559e9 (diff) |
Revert r1.29. Now that the "C" locale is ASCII-only, this workaround
is no longer needed. ok naddy
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/tcpdump/privsep.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/privsep.c b/usr.sbin/tcpdump/privsep.c index cf428abbfe8..e584e57c4aa 100644 --- a/usr.sbin/tcpdump/privsep.c +++ b/usr.sbin/tcpdump/privsep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep.c,v 1.29 2011/04/03 21:11:27 stsp Exp $ */ +/* $OpenBSD: privsep.c,v 1.30 2011/09/22 09:12:30 stsp Exp $ */ /* * Copyright (c) 2003 Can Erkin Acar @@ -32,7 +32,6 @@ #include <err.h> #include <errno.h> #include <fcntl.h> -#include <locale.h> #include <netdb.h> #include <paths.h> #include <pwd.h> @@ -163,9 +162,6 @@ priv_init(int argc, char **argv) if (pw == NULL) errx(1, "unknown user _tcpdump"); - /* set the locale before chrooting */ - (void)setlocale(LC_CTYPE, ""); - /* chroot, drop privs and return */ if (chroot(pw->pw_dir) != 0) err(1, "unable to chroot"); |