[GuidelinesChange] Prepping BuildRoot For %install

Till Maas opensource at till.name
Wed Apr 11 13:58:33 UTC 2007


On Di April 10 2007, Michael Schroeder wrote:

> %__spec_build_pre %{___build_pre}\
> %{?buildroot:  %__rm -rf "$RPM_BUILD_ROOT"\
>   %__mkdir_p `dirname "$RPM_BUILD_ROOT"`\
>   %__mkdir "$RPM_BUILD_ROOT"\
> }
>
> (This actually fixes a tiny security issue, that's why there are
> two mkdir calls...)

When you really need the first of the two mkdir invocations, the security 
issue is not fixed:
https://www.redhat.com/archives/fedora-packaging/2007-March/msg00061.html

Regards,
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20070411/647b2929/attachment-0002.bin 


More information about the devel mailing list