[Rpm-maint] [rpm-software-management/rpm] wrong chroot/fchdir order to break out of chroot? (Issue #1884)

Florian Festi notifications at github.com
Wed Jan 26 10:24:16 UTC 2022


As far as I understand this the working dir is set to `/` before entering the chroot in https://github.com/rpm-software-management/rpm/blob/4afe2d14d33db82ccb41c0a8d5eb1a4db90762fc/lib/rpmchroot.c#L134 . So `(chroot(".")` goes back to `/` (leaving the chroot) and `fchdir` changes the working dir back to the location of the chroot as seen from the outside system. So this seems to be correct to me.

Please feel free to re-open with more details about your particular OS if you want to work on getting this to work there.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1884#issuecomment-1022062964
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/1884/1022062964 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220126/bb3708f9/attachment.html>


More information about the Rpm-maint mailing list