hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 0cfa57527317b8c56d63decc5a97b4cb5e9448e4
parent 2183c5e7d1ccf5e9b42b10b617312ef0211f1349
Author: Autumn! <autumnull@posteo.net>
Date:   Sun,  7 May 2023 01:46:28 +0000

fs: make realpath() return a resolved path

Signed-off-by: Autumn! <autumnull@posteo.net>

Diffstat:
Mfs/util.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/util.ha b/fs/util.ha @@ -146,7 +146,7 @@ export fn realpath(fs: *fs, path: str) (str | error) = { static let res = path::buffer { ... }; path::set(&res)!; static let pathbuf = path::buffer { ... }; - path::set(&pathbuf, path)!; + path::set(&pathbuf, resolve(fs, path))!; const iter = path::iter(&pathbuf); for (true) { const item = match (path::nextiter(&iter)) {