diff options
author | 2014-11-26 18:34:51 +0000 | |
---|---|---|
committer | 2014-11-26 18:34:51 +0000 | |
commit | b9a887b60dfe0bcd4be9bbd84cc3b6ef94586b9f (patch) | |
tree | 69fcd75ffe77994b2e1cb6398698e26414665990 /usr.sbin/cron/crontab.c | |
parent | Make caretx a perl dependency, not just miniperl (diff) | |
download | wireguard-openbsd-b9a887b60dfe0bcd4be9bbd84cc3b6ef94586b9f.tar.xz wireguard-openbsd-b9a887b60dfe0bcd4be9bbd84cc3b6ef94586b9f.zip |
Prefer setvbuf() to setlinebuf() for portability; ok deraadt@
Diffstat (limited to 'usr.sbin/cron/crontab.c')
-rw-r--r-- | usr.sbin/cron/crontab.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index d0993d3e1a2..963b9657124 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.64 2011/08/22 19:32:42 millert Exp $ */ +/* $OpenBSD: crontab.c,v 1.65 2014/11/26 18:34:52 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -82,9 +82,7 @@ main(int argc, char *argv[]) { setlocale(LC_ALL, ""); -#if defined(BSD) - setlinebuf(stderr); -#endif + setvbuf(stderr, NULL, _IOLBF, 0); parse_args(argc, argv); /* sets many globals, opens a file */ set_cron_cwd(); if (!allowed(RealUser, CRON_ALLOW, CRON_DENY)) { |