poldek -r broken again?

Jeff Johnson n3npq at mac.com
Sun May 2 21:23:32 CEST 2010


On May 2, 2010, at 3:14 PM, Przemyslaw Iskra wrote:

> On Sun, May 02, 2010 at 02:57:39PM -0400, Jeff Johnson wrote:
>> 
>>> chroot(".")                             = 0
>>> -- chroots back to /tmp !
>>>    This way /tmp becomes new root.
>>> 
>> 
>> ... which re-establishes the cwd before embedded lua was run.
> 
> It also establishes /tmp as new /, so now when you use path:
> /tmp/rpm/something it points to /tmp/tmp/rpm/something in real root.
> 

Send along a patch if you want a fix. The code is in lib/psm.c,
and the patch is likely less than 5 lines (which is >2 orders of magnitude
fewer lines than have already been written about Glen's %pretrans script)

73 de Jeff



More information about the pld-devel-en mailing list