From b1762000990ffaa9c43cbf8d1b70039668d9b042 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Wed, 22 Oct 1997 01:21:11 +0000 Subject: [PATCH] Change test used to decide whether an unreadable file exists. The procedure FILE-EXISTS? gives the wrong answer when the file is a symbolic link that points to a non-existent file. --- v7/src/edwin/filcom.scm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/v7/src/edwin/filcom.scm b/v7/src/edwin/filcom.scm index 0f633a8a9..22d197073 100644 --- a/v7/src/edwin/filcom.scm +++ b/v7/src/edwin/filcom.scm @@ -1,6 +1,6 @@ ;;; -*-Scheme-*- ;;; -;;; $Id: filcom.scm,v 1.192 1997/08/23 05:20:15 cph Exp $ +;;; $Id: filcom.scm,v 1.193 1997/10/22 01:21:11 cph Exp $ ;;; ;;; Copyright (c) 1986, 1989-97 Massachusetts Institute of Technology ;;; @@ -169,7 +169,9 @@ invocation." (message "File is write protected")) (else (serious-message - (if (file-test-no-errors file-exists? pathname) + (if (file-test-no-errors + (lambda (pathname) (file-access pathname 0)) + pathname) "File exists, but is read-protected." (string-append "File not found and directory " -- 2.25.1