]> granicus.if.org Git - file/commitdiff
Print a file name for standard input as well as filename case.
authorIan Darwin <ian@darwinsys.com>
Thu, 12 Nov 1987 13:11:06 +0000 (13:11 +0000)
committerIan Darwin <ian@darwinsys.com>
Thu, 12 Nov 1987 13:11:06 +0000 (13:11 +0000)
src/file.c

index e0cc6f45e324bda8e47831d2200cf97b3317fa32..929c19a9dac40b52b7aff9f24c54a720d9fc7ca7 100644 (file)
@@ -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;