]> granicus.if.org Git - file/commitdiff
avarvit@dolnet.gr: Make unrecognized files print application/octet-stream
authorChristos Zoulas <christos@zoulas.com>
Tue, 18 Dec 2001 20:56:38 +0000 (20:56 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 18 Dec 2001 20:56:38 +0000 (20:56 +0000)
instead of data.

src/file.c

index 8608fcbbf6d1bf9d283defa99905ac3dcbc12ea0..33bd4b0b2ba394425ba968a4518273000252d478 100644 (file)
@@ -56,7 +56,7 @@
 #include "patchlevel.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$Id: file.c,v 1.60 2001/10/20 17:44:53 christos Exp $")
+FILE_RCSID("@(#)$Id: file.c,v 1.61 2001/12/18 20:56:38 christos Exp $")
 #endif /* lint */
 
 
@@ -463,7 +463,7 @@ tryit(buf, nb, zflag)
                return 'a';
 
        /* abandon hope, all ye who remain here */
-       ckfputs("data", stdout);
+       ckfputs(iflag ? "application/octet-stream" : "data", stdout);
                return '\0';
 }