diff options
author | Anthony J. Bentley <bentley@cvs.openbsd.org> | 2017-11-30 11:10:08 +0000 |
---|---|---|
committer | Anthony J. Bentley <bentley@cvs.openbsd.org> | 2017-11-30 11:10:08 +0000 |
commit | 6d041432e6666b9bf8d5d5290b6c458afe2f59f1 (patch) | |
tree | fae9f1ead5f2854759e451a4b52ae9512027a2a4 /usr.bin | |
parent | e992a93b409dda5e0901c59a72aa6c7e980a56bb (diff) |
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')
-rw-r--r-- | usr.bin/file/file.c | 4 |
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); |