From: Christos Zoulas Date: Tue, 18 Dec 2001 20:56:38 +0000 (+0000) Subject: avarvit@dolnet.gr: Make unrecognized files print application/octet-stream X-Git-Tag: FILE3_38~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80f66ccc56b09fd9b4e6573b5c55309e7170099b;p=file avarvit@dolnet.gr: Make unrecognized files print application/octet-stream instead of data. --- diff --git a/src/file.c b/src/file.c index 8608fcbb..33bd4b0b 100644 --- a/src/file.c +++ b/src/file.c @@ -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'; }