From f832fd23ae14faffebdd664f11d341d9ccb35c0e Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 26 Nov 2015 09:20:06 -0500 Subject: binutils-2.24.51: updated patch. + smart_rename: fallback to simple_copy upon failure. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- binutils-2.24.51.midipix.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'binutils-2.24.51.midipix.patch') 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) -- cgit v1.2.3