summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2010-12-13 20:52:23 +0000
committerespie <espie@openbsd.org>2010-12-13 20:52:23 +0000
commitb38b3c818eef63c29930aad43d3a2c3dcf7ab2af (patch)
treea0724092cab46e987c742bb0947e84ffc644402c
parentrename() is the atomic operation, unlink() is just there to create (diff)
downloadwireguard-openbsd-b38b3c818eef63c29930aad43d3a2c3dcf7ab2af.tar.xz
wireguard-openbsd-b38b3c818eef63c29930aad43d3a2c3dcf7ab2af.zip
same bug, should have guessed this would come from gnu portability stupidity.
as noted by deraadt@
-rw-r--r--gnu/usr.bin/ld/ldconfig/ldconfig.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gnu/usr.bin/ld/ldconfig/ldconfig.c b/gnu/usr.bin/ld/ldconfig/ldconfig.c
index 363cc01d7aa..d2c1d4029e4 100644
--- a/gnu/usr.bin/ld/ldconfig/ldconfig.c
+++ b/gnu/usr.bin/ld/ldconfig/ldconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldconfig.c,v 1.18 2005/09/29 20:40:35 deraadt Exp $ */
+/* $OpenBSD: ldconfig.c,v 1.19 2010/12/13 20:52:23 espie Exp $ */
/*
* Copyright (c) 1993,1995 Paul Kranenburg
@@ -408,12 +408,6 @@ buildhints(void)
return -1;
}
- /* Install it */
- if (unlink(_PATH_LD_HINTS) != 0 && errno != ENOENT) {
- warn("%s", _PATH_LD_HINTS);
- return -1;
- }
-
if (rename(tmpfile, _PATH_LD_HINTS) != 0) {
warn("%s", _PATH_LD_HINTS);
return -1;