pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: pkgsrc/math/lp_solve



On 29/10/2017 19:25, Joerg Sonnenberger wrote:
> On Sat, Oct 28, 2017 at 11:23:50AM +0000, Pierre Pronchery wrote:
>> Module Name: pkgsrc
>> Committed By:        khorben
>> Date:                Sat Oct 28 11:23:50 UTC 2017
>>
>> Modified Files:
>>      pkgsrc/math/lp_solve: distinfo
>>      pkgsrc/math/lp_solve/patches: patch-lp__solve_ccc patch-lpsolve55_ccc
>>
>> Log Message:
>> Fix local privilege escalation when building math/lp_solve
>>
>> This still requires $TMPDIR (or /tmp) to be mounted with "exec", but now
>> respects $TMPDIR.
> 
> mktemp -d is not that terribly portable.

True; I looked for prior art first, and found quite a of few uses,
including in libarchive, pax, fetch, and pkg_install, or in a number of
patches from pkgsrc:

> pkgsrc$ for i in $(make -V '${SUBDIR}'); do grep -nrF 'mktemp -d' "$i"; done

So I first thought this was perfectly fine. However, I do see now that
there is fallback code in some cases, like in "configure" scripts.

Should I revisit this, or is it good enough for now?

Cheers,
-- 
khorben



Home | Main Index | Thread Index | Old Index