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 _______________________________________________ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en