mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 14:36:16 +02:00
Merge pull request #2895 from CSVdB/fixRelativePaths
Fixed relative path parsing
This commit is contained in:
commit
2950014535
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ FlakeRef::FlakeRef(const std::string & uri, bool allowRelative)
|
|||
data = d;
|
||||
}
|
||||
|
||||
else if (hasPrefix(uri, "/") || (allowRelative && (hasPrefix(uri, "./") || uri == "."))) {
|
||||
else if (hasPrefix(uri, "/") || (allowRelative && (hasPrefix(uri, "./") || hasPrefix(uri, "../") || uri == "."))) {
|
||||
IsPath d;
|
||||
d.path = allowRelative ? absPath(uri) : canonPath(uri);
|
||||
data = d;
|
||||
|
|
Loading…
Reference in a new issue