summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-11-11 17:05:23 +0000
committermillert <millert@openbsd.org>2015-11-11 17:05:23 +0000
commit2204ade250714634642d292d062e2a4041d01203 (patch)
treefeacb2a742a3d9f4ce5a162f971249688f4a881f
parentFix spool dir mode check to avoid extraneous chmod() calls. (diff)
downloadwireguard-openbsd-2204ade250714634642d292d062e2a4041d01203.tar.xz
wireguard-openbsd-2204ade250714634642d292d062e2a4041d01203.zip
Remove obsolete utime() call. It predates the use of a socket to
prod cron into checking the spool dir.
-rw-r--r--usr.sbin/cron/client.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/cron/client.c b/usr.sbin/cron/client.c
index b0d021263da..1786af35dc2 100644
--- a/usr.sbin/cron/client.c
+++ b/usr.sbin/cron/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.5 2015/11/09 15:57:39 millert Exp $ */
+/* $OpenBSD: client.c,v 1.6 2015/11/11 17:05:23 millert Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
@@ -27,7 +27,6 @@
#include <string.h>
#include <time.h> /* for structs.h */
#include <unistd.h>
-#include <utime.h>
#include "pathnames.h"
#include "macros.h"
@@ -95,8 +94,6 @@ poke_daemon(const char *spool_dir, unsigned char cookie)
int sock = -1;
struct sockaddr_un s_un;
- (void) utime(spool_dir, NULL); /* old poke method */
-
bzero(&s_un, sizeof(s_un));
if (snprintf(s_un.sun_path, sizeof s_un.sun_path, "%s/%s",
CRON_SPOOL, CRONSOCK) >= sizeof(s_un.sun_path)) {