summaryrefslogtreecommitdiffstats
path: root/usr.bin/rdistd/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/rdistd/server.c')
-rw-r--r--usr.bin/rdistd/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rdistd/server.c b/usr.bin/rdistd/server.c
index 59b1a775ef4..77b1217eb73 100644
--- a/usr.bin/rdistd/server.c
+++ b/usr.bin/rdistd/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.23 2012/11/12 01:14:41 guenther Exp $ */
+/* $OpenBSD: server.c,v 1.24 2013/04/16 19:24:53 deraadt Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -902,7 +902,7 @@ recvfile(char *new, opt_t opts, int mode, char *owner, char *group,
* Perform utimes() after file is closed to make
* certain OS's, such as NeXT 2.1, happy.
*/
- if (setfiletime(new, time((time_t *) 0), mtime) < 0)
+ if (setfiletime(new, time(NULL), mtime) < 0)
message(MT_NOTICE, "%s: utimes failed: %s", new, SYSERR);
/*