* Most shells initialise PATH to some default (/bin:/usr/bin:...)

when PATH is not set.  We don't want this, so fill it in with
  some dummy value.
This commit is contained in:
Eelco Dolstra 2003-08-18 14:54:54 +00:00
parent c32e01eab2
commit ebbb6ce578
1 changed files with 5 additions and 0 deletions

View File

@ -129,6 +129,11 @@ FSId normaliseFState(FSId id, FSIdSet pending)
for (ElemMap::iterator i = inMap.begin(); i != inMap.end(); i++)
refPaths.push_back(i->second.path);
/* Most shells initialise PATH to some default (/bin:/usr/bin:...) when
PATH is not set. We don't want this, so we fill it in with some dummy
value. */
env["PATH"] = "/path-not-set";
/* Build the environment. */
for (StringPairs::iterator i = fs.derive.env.begin();
i != fs.derive.env.end(); i++)