diff options
author | 1997-05-31 08:17:33 +0000 | |
---|---|---|
committer | 1997-05-31 08:17:33 +0000 | |
commit | 7250eae1ce7ff271ce58ab193c235db97979205d (patch) | |
tree | 5564086b959da12c1a1ac2b50bf15d6a20c8abfb | |
parent | trunc uid/gid to USHRT_MAX; mycroft; PR#75 (diff) | |
download | wireguard-openbsd-7250eae1ce7ff271ce58ab193c235db97979205d.tar.xz wireguard-openbsd-7250eae1ce7ff271ce58ab193c235db97979205d.zip |
futimes avoids race; mycroft
-rw-r--r-- | usr.bin/ar/extract.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ar/extract.c b/usr.bin/ar/extract.c index 7861c3356a1..9943633f831 100644 --- a/usr.bin/ar/extract.c +++ b/usr.bin/ar/extract.c @@ -1,4 +1,4 @@ -/* $OpenBSD: extract.c,v 1.2 1996/06/26 05:31:20 deraadt Exp $ */ +/* $OpenBSD: extract.c,v 1.3 1997/05/31 08:17:33 deraadt Exp $ */ /* $NetBSD: extract.c,v 1.5 1995/03/26 03:27:53 glass Exp $ */ /*- @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)extract.c 8.3 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: extract.c,v 1.2 1996/06/26 05:31:20 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: extract.c,v 1.3 1997/05/31 08:17:33 deraadt Exp $"; #endif #endif /* not lint */ @@ -116,7 +116,7 @@ extract(argv) } if (options & AR_O) { tv[0].tv_sec = tv[1].tv_sec = chdr.date; - if (utimes(file, tv)) { + if (futimes(tfd, tv)) { warn("utimes: %s", file); eval = 1; } |