From: Ian Darwin Date: Fri, 11 Sep 1992 13:15:16 +0000 (+0000) Subject: Permission denied type messages are no longer fatal. X-Git-Tag: FILE3_27~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=230c14f09e4119a2fe8b5ab09d3851417b8cb845;p=file Permission denied type messages are no longer fatal. --- diff --git a/src/file.c b/src/file.c index 013a907a..2bb73286 100644 --- a/src/file.c +++ b/src/file.c @@ -26,7 +26,7 @@ */ #ifndef lint static char *moduleid = - "@(#)$Id: file.c,v 1.24 1992/09/11 11:44:31 ian Exp $"; + "@(#)$Id: file.c,v 1.25 1992/09/11 13:15:16 ian Exp $"; #endif /* lint */ #include @@ -216,8 +216,9 @@ int wid; /* We can't open it, but we were able to stat it. */ if (sb.st_mode & 0002) ckfputs("writeable, ", stdout); if (sb.st_mode & 0111) ckfputs("executable, ", stdout); - error("can't read `%s' (%s).\n", inname, strerror(errno)); - /*NOTREACHED*/ + ckfprintf(stdout, "can't read `%s' (%s).\n", + inname, strerror(errno)); + return; } }