From 80f66ccc56b09fd9b4e6573b5c55309e7170099b Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 18 Dec 2001 20:56:38 +0000 Subject: [PATCH] avarvit@dolnet.gr: Make unrecognized files print application/octet-stream instead of data. --- src/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; } -- 2.40.0