From: bentley Date: Thu, 30 Nov 2017 11:10:07 +0000 (+0000) Subject: Default unknowns to application/octet-stream instead of x-not-regular-file. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5f0569b533d71b4ec9dc1fa14ba505748af1b849;p=openbsd 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@ --- 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);