From 959aa905455306aa7b471d8995a4cde8ef1f75e9 Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Thu, 12 Nov 1987 13:11:06 +0000 Subject: [PATCH] Print a file name for standard input as well as filename case. --- src/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.40.0