Don't try to map /bin/sh to a store path on non-Linux

This commit is contained in:
Shea Levy 2015-05-12 16:36:15 -04:00
parent 8972f7c14a
commit 71083f9e5e

View file

@ -1786,8 +1786,10 @@ void DerivationGoal::startBuilder()
if (useChroot) { if (useChroot) {
string defaultChrootDirs; string defaultChrootDirs;
#if CHROOT_ENABLED
if (isInStore(BASH_PATH)) if (isInStore(BASH_PATH))
defaultChrootDirs = "/bin/sh=" BASH_PATH; defaultChrootDirs = "/bin/sh=" BASH_PATH;
#endif
/* Allow a user-configurable set of directories from the /* Allow a user-configurable set of directories from the
host file system. */ host file system. */