diff options
-rw-r--r-- | binutils-2.24.51.midipix.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/binutils-2.24.51.midipix.patch b/binutils-2.24.51.midipix.patch index d4119a8..8fa7400 100644 --- a/binutils-2.24.51.midipix.patch +++ b/binutils-2.24.51.midipix.patch @@ -710,3 +710,17 @@ diff -ru a/gas/config/tc-i386.c b/gas/config/tc-i386.c /* Fix a few things - the dynamic linker expects certain values here, and we must not disappoint it. */ +--- a/binutils/rename.c 2014-07-03 01:37:22.000000000 -0400 ++++ b/binutils/rename.c 2015-11-25 23:13:38.086948592 -0500 +@@ -167,7 +167,10 @@ + && s.st_nlink == 1) + ) + { +- ret = rename (from, to); ++ if ((ret = rename (from, to))) ++ if (!(ret = simple_copy (from, to))) ++ unlink (from); ++ + if (ret == 0) + { + if (exists) |