hare

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

commit 01e17009058ae55aa0e7fbb4469fa50e11c409d9
parent 18f9cf3ac30550db0d1fbafd0fee8362824d1aaf
Author: citrons <citrons@mondecitronne.com>
Date:   Sun,  3 Mar 2024 14:40:27 -0600

hare::module::find(): fix symlink resolution

os::realpath() resolves relative symlinks correctly.

Signed-off-by: Raven Randall <citrons@mondecitronne.com>

Diffstat:
Mhare/module/srcs.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hare/module/srcs.ha b/hare/module/srcs.ha @@ -201,7 +201,7 @@ fn _findsrcs( if (time::compare(res.mtime, stat.mtime) < 0) { res.mtime = stat.mtime; }; - tmp = os::readlink(tmp)?; + tmp = os::realpath(tmp)?; stat = os::stat(tmp)?; };