mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
* Resolve all symlink components in the location of the temporary
build directory (TMPDIR, i.e., /tmp). Fixes NIX-26.
This commit is contained in:
parent
0f8d3c871b
commit
04be39734f
2 changed files with 25 additions and 4 deletions
|
@ -64,8 +64,10 @@ string getEnv(const string & key, const string & def = "");
|
|||
Path absPath(Path path, Path dir = "");
|
||||
|
||||
/* Canonicalise a path by removing all `.' or `..' components and
|
||||
double or trailing slashes. */
|
||||
Path canonPath(const Path & path);
|
||||
double or trailing slashes. Optionally resolves all symlink
|
||||
components such that each component of the resulting path is *not*
|
||||
a symbolic link. */
|
||||
Path canonPath(const Path & path, bool resolveSymlinks = false);
|
||||
|
||||
/* Return the directory part of the given canonical path, i.e.,
|
||||
everything before the final `/'. If the path is the root or an
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue