diff options
| -rw-r--r-- | usr.sbin/cron/cron.c | 5 | ||||
| -rw-r--r-- | usr.sbin/cron/crontab.c | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/usr.sbin/cron/cron.c b/usr.sbin/cron/cron.c index 8fa4f8e97b6..69952932812 100644 --- a/usr.sbin/cron/cron.c +++ b/usr.sbin/cron/cron.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cron.c,v 1.77 2017/10/23 15:15:22 jca Exp $ */ +/* $OpenBSD: cron.c,v 1.78 2020/02/11 12:42:01 schwarze Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -28,7 +28,6 @@ #include <err.h> #include <errno.h> #include <grp.h> -#include <locale.h> #include <poll.h> #include <signal.h> #include <stdio.h> @@ -84,8 +83,6 @@ main(int argc, char *argv[]) sigset_t blocked, omask; struct group *grp; - setlocale(LC_ALL, ""); - setvbuf(stdout, NULL, _IOLBF, 0); setvbuf(stderr, NULL, _IOLBF, 0); diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index 6e9933af6cc..9e352f8f41e 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.93 2019/06/28 13:32:47 deraadt Exp $ */ +/* $OpenBSD: crontab.c,v 1.94 2020/02/11 12:42:02 schwarze Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -26,7 +26,6 @@ #include <err.h> #include <errno.h> #include <limits.h> -#include <locale.h> #include <pwd.h> #include <signal.h> #include <stdio.h> @@ -92,7 +91,6 @@ main(int argc, char *argv[]) user_gid = getgid(); crontab_gid = getegid(); - setlocale(LC_ALL, ""); openlog(__progname, LOG_PID, LOG_CRON); setvbuf(stderr, NULL, _IOLBF, 0); |
