summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2021-01-23 10:18:29 +0000
committerMarc Espie <espie@cvs.openbsd.org>2021-01-23 10:18:29 +0000
commit63391001a741154e73ae4f055cf6fbe6041019d7 (patch)
tree51325f79a4085180f7981e8304432ccc6f46cea5 /usr.bin
parent465727b6ef872bb6ef291d41b481c48699219736 (diff)
recognize those ubiquitous webp file
cherry-picked from FreeBSD okay millert@, deraadt@, sthen@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/file/magdir/riff4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/file/magdir/riff b/usr.bin/file/magdir/riff
index 2aa2b3f07b7..0fd91a20de3 100644
--- a/usr.bin/file/magdir/riff
+++ b/usr.bin/file/magdir/riff
@@ -1,4 +1,4 @@
-# $OpenBSD: riff,v 1.3 2009/04/24 18:54:34 chl Exp $
+# $OpenBSD: riff,v 1.4 2021/01/23 10:18:28 espie Exp $
#------------------------------------------------------------------------------
# riff: file(1) magic for RIFF format
@@ -177,6 +177,8 @@
# MPEG-1 wrapped in a RIFF, apparently
>8 string CDXA \b, wrapped MPEG-1 (CDXA)
>8 string 4XMV \b, 4X Movie file
+>8 string WEBP \b, Web/P image
+!:mime image/webp
#
# XXX - some of the below may only appear in little-endian form.