summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-07-09 00:24:51 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-07-09 00:24:51 +0000
commitfe75c337e5ca75e45c03318bfcbafdab414a02a3 (patch)
tree03e9005f2ca7fdc418c1f9e57e641befaae59230
parenta8befa93d1407a34498390087a06ce0eead13e9e (diff)
We already did a closelog(); no need for it here.
-rw-r--r--usr.sbin/cron/popen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/cron/popen.c b/usr.sbin/cron/popen.c
index 3e5e8344f8c..e2963ac747e 100644
--- a/usr.sbin/cron/popen.c
+++ b/usr.sbin/cron/popen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: popen.c,v 1.15 2002/07/08 18:11:02 millert Exp $ */
+/* $OpenBSD: popen.c,v 1.16 2002/07/09 00:24:50 millert Exp $ */
/*
* Copyright (c) 1988, 1993, 1994
@@ -42,7 +42,7 @@
#if 0
static const sccsid[] = "@(#)popen.c 8.3 (Berkeley) 4/6/94";
#else
-static const char rcsid[] = "$OpenBSD: popen.c,v 1.15 2002/07/08 18:11:02 millert Exp $";
+static const char rcsid[] = "$OpenBSD: popen.c,v 1.16 2002/07/09 00:24:50 millert Exp $";
#endif
#endif /* not lint */
@@ -117,7 +117,6 @@ cron_popen(char *program, char *type, entry *e) {
chdir(env_get("HOME", e->envp));
#endif /* LOGIN_CAP */
}
- closelog();
if (*type == 'r') {
if (pdes[1] != STDOUT) {
dup2(pdes[1], STDOUT);