From ed61961877a5c03b0415a6bcfd644e80209cd850 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Thu, 10 May 2001 03:14:07 +0000 Subject: [PATCH] Fix bug: FILE-SYMBOLIC-LINK? is supposed to return the link contents if the result is true. My rewrite returned #t in that case. --- v7/src/runtime/sfile.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/v7/src/runtime/sfile.scm b/v7/src/runtime/sfile.scm index 071fa7f1f..fd230d252 100644 --- a/v7/src/runtime/sfile.scm +++ b/v7/src/runtime/sfile.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: sfile.scm,v 14.25 2001/05/09 14:18:50 cph Exp $ +$Id: sfile.scm,v 14.26 2001/05/10 03:14:07 cph Exp $ Copyright (c) 1988-2001 Massachusetts Institute of Technology @@ -75,7 +75,8 @@ USA. (eq? 'DIRECTORY (file-type-indirect filename))) (define (file-symbolic-link? filename) - (eq? 'UNIX-SYMBOLIC-LINK (file-type-direct filename))) + ((ucode-primitive file-symlink? 1) + (->namestring (merge-pathnames filename)))) (define (file-access filename amode) ((ucode-primitive file-access 2) -- 2.25.1