diff options
author | 2009-08-16 09:53:43 +0000 | |
---|---|---|
committer | 2009-08-16 09:53:43 +0000 | |
commit | ce3d097de934fba96fded79bd893f3e94250929c (patch) | |
tree | 632e214b149d2fb75c813c7685707fe0b05fa5e3 /usr.bin/make/dir.c | |
parent | use unsigned values where applicable (diff) | |
download | wireguard-openbsd-ce3d097de934fba96fded79bd893f3e94250929c.tar.xz wireguard-openbsd-ce3d097de934fba96fded79bd893f3e94250929c.zip |
modify timestamp handling to grab current time instead of relying on a
stale timestamp.
all those diffs sent to people ages ago, who didn't answer, except for
Theo, who said he ran it with no issues, so let's get this in...
Diffstat (limited to 'usr.bin/make/dir.c')
-rw-r--r-- | usr.bin/make/dir.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/make/dir.c b/usr.bin/make/dir.c index b43efefe89c..822cd1446a6 100644 --- a/usr.bin/make/dir.c +++ b/usr.bin/make/dir.c @@ -1,5 +1,5 @@ /* $OpenPackages$ */ -/* $OpenBSD: dir.c,v 1.56 2008/11/04 07:22:35 espie Exp $ */ +/* $OpenBSD: dir.c,v 1.57 2009/08/16 09:53:43 espie Exp $ */ /* $NetBSD: dir.c,v 1.14 1997/03/29 16:51:26 christos Exp $ */ /* @@ -754,6 +754,9 @@ Dir_MTime(GNode *gn) unsigned int slot; TIMESTAMP mtime; + if (gn->type & OP_PHONY) + return gn->mtime; + if (gn->type & OP_ARCHV) return Arch_MTime(gn); |