From 71083f9e5ecfb94d110664499d87cea3e6c61b2e Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 12 May 2015 16:36:15 -0400 Subject: Don't try to map /bin/sh to a store path on non-Linux --- src/libstore/build.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstore/build.cc') diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 08b647cd6192..2d81f72c12ab 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -1786,8 +1786,10 @@ void DerivationGoal::startBuilder() if (useChroot) { string defaultChrootDirs; +#if CHROOT_ENABLED if (isInStore(BASH_PATH)) defaultChrootDirs = "/bin/sh=" BASH_PATH; +#endif /* Allow a user-configurable set of directories from the host file system. */ -- cgit 1.4.1