bin/109334: pkg_add(1) using chroot exits with error if wrong directory

Garrett Cooper yanegomi at gmail.com
Sun Mar 21 08:50:08 UTC 2010


The following reply was made to PR bin/109334; it has been noted by GNATS.

From: Garrett Cooper <yanegomi at gmail.com>
To: bug-followup at freebsd.org, nick at anywi.com
Cc:  
Subject: Re: bin/109334: pkg_add(1) using chroot exits with error if wrong 
	directory
Date: Sun, 21 Mar 2010 01:42:52 -0700

 On Sat, Mar 20, 2010 at 6:36 PM, Garrett Cooper <yanegomi at gmail.com> wrote:
 > Hi Nick,
 > =A0 =A0I realize that this PR has been sitting around for a long time,
 > but is it possible that you can dig up more details, like filesystem
 > layout and/or environment variables used when trying to run pkg_add? I
 > know this seems like a lot, and yes I might be able to reproduce the
 > issue on my own, but the fact is that there are a large number of
 > potential failures that could occur based on what you had set in your
 > environment and what did not exist on your chrooted filesystem.
 
 Nevermind. This is easy to produce and I know why it's happening. From
 chroot(2):
 
      It should be noted that chroot() has no effect on the process's curren=
 t
      directory.
 
 Let me think about the best way to resolve this issue and I'll get
 back to you by Monday or Tuesday.
 
 Thanks,
 -Garrett


More information about the freebsd-bugs mailing list