diff options
author | Shea Levy <shea@shealevy.com> | 2015-05-12T20·36-0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2015-05-12T20·36-0400 |
commit | 71083f9e5ecfb94d110664499d87cea3e6c61b2e (patch) | |
tree | cc2157f672d32ef4f9f64b201d79e947bfec4913 | |
parent | 8972f7c14a196041f8faef2f2c3f7bd705ab4e07 (diff) |
Don't try to map /bin/sh to a store path on non-Linux
-rw-r--r-- | src/libstore/build.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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. */ |