]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r367809:
authorDimitry Andric <dim@FreeBSD.org>
Wed, 2 Dec 2020 21:44:41 +0000 (21:44 +0000)
committerDimitry Andric <dim@FreeBSD.org>
Wed, 2 Dec 2020 21:44:41 +0000 (21:44 +0000)
commite522d02897c0d633f9752f1fe02cfff461096516
treedbbb914f8b9db90d9d5280c78b37996cecfd2c25
parentbda7a14fa01822cc967b6f5384bd327a290bb35a
MFC r367809:

When elftoolchain's objcopy (or strip) is rewriting a file in-place,
make it create the temporary file in the same directory as the source
file by default, instead of always using $TMPDIR or /tmp. If creating
that file fails because the directory is not writable, also fallback to
$TMPDIR or /tmp.

This has also been submitted upstream as:
https://sourceforge.net/p/elftoolchain/tickets/597/

Reported by: cem
PR: 250872
contrib/elftoolchain/elfcopy/archive.c
contrib/elftoolchain/elfcopy/elfcopy.h
contrib/elftoolchain/elfcopy/main.c