From: Ian Darwin Date: Thu, 12 Nov 1987 13:11:06 +0000 (+0000) Subject: Print a file name for standard input as well as filename case. X-Git-Tag: FILE3_27~346 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=959aa905455306aa7b471d8995a4cde8ef1f75e9;p=file Print a file name for standard input as well as filename case. --- diff --git a/src/file.c b/src/file.c index e0cc6f45..929c19a9 100644 --- a/src/file.c +++ b/src/file.c @@ -34,7 +34,7 @@ #ifndef lint static char *moduleid = - "@(#)$Header: /home/glen/git/file/cvs/file/src/file.c,v 1.13 1987/11/12 12:57:50 ian Exp $"; + "@(#)$Header: /home/glen/git/file/cvs/file/src/file.c,v 1.14 1987/11/12 13:11:06 ian Exp $"; #endif /* lint */ extern char *ckfmsg; int debug = 0, /* huh? */ @@ -140,7 +140,7 @@ char *inname; struct utimbuf utbuf; if (strcmp("-", inname) == 0) { - /* Standard input */ + (void) printf("standard input:\t"); if (fstat(0, &statbuf)<0) warning("cannot fstat; "); fd = 0;