[Rpm-maint] odd chroot behavior inside the rpm transaction

devzero2000 pinto.elia at gmail.com
Tue Sep 15 09:51:02 UTC 2009

On Mon, Sep 14, 2009 at 10:54 PM, Seth Vidal <skvidal at fedoraproject.org>wrote:

> https://bugzilla.redhat.com/show_bug.cgi?id=503195#c13
> as I said:
>  if, from the python bindings, I open a file with a name starting with '/'
> while in a transaction then as expected, the file is opened inside the
> installroot
> however, if I open a file with a name NOT starting with '/' then the file
> is opened OUTSIDE of the installroot.
> Does this make any sense? B/c I admit I don't quite grok why it would be
> this way.
> Thanks,

I suggest to read the man page chroot(2)

      chroot()  changes  the  root  directory  of the calling process to
      specified in path.  This directory will be used for pathnames
      with /.  The root directory is inherited by all children of the

> _______________________________________________
> Rpm-maint mailing list
> Rpm-maint at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-maint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20090915/a219be46/attachment.htm>

More information about the Rpm-maint mailing list