diff options
author | Tom Bereknyei <tomberek@gmail.com> | 2021-11-19 23:52:52 -0500 |
---|---|---|
committer | Tom Bereknyei <tomberek@gmail.com> | 2021-11-20 00:25:36 -0500 |
commit | 4318ba2ec568a9fe7d5b4b014df6b7d252ae3481 (patch) | |
tree | f75f3dd998929709426c49a49f1a9aa09c07ff4d /src/libexpr/eval.cc | |
parent | 9cd8cffefc65fe425c6aa07aa3bc67a8eec46087 (diff) |
add real path to allowedPaths
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index f1ff3a6e0..97fc04711 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -520,7 +520,7 @@ Path EvalState::checkSourcePath(const Path & path_) } if (!found) - throw RestrictedPathError("access to path '%1%' is forbidden in restricted mode", abspath); + throw RestrictedPathError("access to absolute path '%1%' is forbidden in restricted mode", abspath); /* Resolve symlinks. */ debug(format("checking access to '%s'") % abspath); @@ -533,7 +533,7 @@ Path EvalState::checkSourcePath(const Path & path_) } } - throw RestrictedPathError("access to path '%1%' is forbidden in restricted mode", path); + throw RestrictedPathError("access to canonical path '%1%' is forbidden in restricted mode", path); } |