diff options
author | 2010-12-13 20:52:23 +0000 | |
---|---|---|
committer | 2010-12-13 20:52:23 +0000 | |
commit | b38b3c818eef63c29930aad43d3a2c3dcf7ab2af (patch) | |
tree | a0724092cab46e987c742bb0947e84ffc644402c | |
parent | rename() is the atomic operation, unlink() is just there to create (diff) | |
download | wireguard-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.c | 8 |
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; |