From 5f0569b533d71b4ec9dc1fa14ba505748af1b849 Mon Sep 17 00:00:00 2001 From: bentley Date: Thu, 30 Nov 2017 11:10:07 +0000 Subject: [PATCH] Default unknowns to application/octet-stream instead of x-not-regular-file. This makes more sense and matches what the latest "other" file(1) now does. ok nicm@ --- usr.bin/file/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/file/file.c b/usr.bin/file/file.c index b98643dfe3d..acdc1d84731 100644 --- a/usr.bin/file/file.c +++ b/usr.bin/file/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.64 2017/07/01 21:07:13 brynet Exp $ */ +/* $OpenBSD: file.c,v 1.65 2017/11/30 11:10:07 bentley Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -515,7 +515,7 @@ static int try_unknown(struct input_file *inf) { if (iflag) - xasprintf(&inf->result, "application/x-not-regular-file"); + xasprintf(&inf->result, "application/octet-stream"); else xasprintf(&inf->result, "data"); return (1); -- 2.20.1