Summary: | objcopy (elfcopy, elftoolchain) in-place operation emits output to wrong filesystem | ||
---|---|---|---|
Product: | Base System | Reporter: | Conrad Meyer <cem> |
Component: | bin | Assignee: | Dimitry Andric <dim> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | dim, emaste, swills |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Conrad Meyer
2020-11-05 02:04:53 UTC
I submitted https://sourceforge.net/p/elftoolchain/tickets/597/ upstream, because I would rather not introduce more gratuitous differences between our elftoolchain and upstream. If they don't respond soonish, I will commit that diff into our tree instead. Thanks! A commit references this bug: Author: dim Date: Wed Nov 18 18:40:59 UTC 2020 New revision: 367809 URL: https://svnweb.freebsd.org/changeset/base/367809 Log: 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 MFC after: 2 weeks Changes: head/contrib/elftoolchain/elfcopy/archive.c head/contrib/elftoolchain/elfcopy/elfcopy.h head/contrib/elftoolchain/elfcopy/main.c Thanks again :-). A commit references this bug: Author: dim Date: Wed Dec 2 21:44:43 UTC 2020 New revision: 368286 URL: https://svnweb.freebsd.org/changeset/base/368286 Log: 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 Changes: _U stable/11/ stable/11/contrib/elftoolchain/elfcopy/archive.c stable/11/contrib/elftoolchain/elfcopy/elfcopy.h stable/11/contrib/elftoolchain/elfcopy/main.c _U stable/12/ stable/12/contrib/elftoolchain/elfcopy/archive.c stable/12/contrib/elftoolchain/elfcopy/elfcopy.h stable/12/contrib/elftoolchain/elfcopy/main.c |