summaryrefslogtreecommitdiffstats
path: root/usr.bin/file/file.c
diff options
context:
space:
mode:
authorbentley <bentley@openbsd.org>2017-11-30 11:10:07 +0000
committerbentley <bentley@openbsd.org>2017-11-30 11:10:07 +0000
commit5f0569b533d71b4ec9dc1fa14ba505748af1b849 (patch)
tree1c9cf7d8a90328744d738b1ba2be13fc40655eb6 /usr.bin/file/file.c
parentuse the same macro consistently for the various carp balancing modes; (diff)
downloadwireguard-openbsd-5f0569b533d71b4ec9dc1fa14ba505748af1b849.tar.xz
wireguard-openbsd-5f0569b533d71b4ec9dc1fa14ba505748af1b849.zip
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@
Diffstat (limited to 'usr.bin/file/file.c')
-rw-r--r--usr.bin/file/file.c4
1 files 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 <nicm@openbsd.org>
@@ -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);