git: 9front

Download patch

ref: 8611753cd05c56982b31b07a5a64a928ad45454f
parent: e04a6eb36e0507363924445f9d0a179e8a75d33d
author: cinap_lenrek <cinap_lenrek@rei2.9hal>
date: Thu Jan 19 21:15:22 EST 2012

file: detect FF D8 maker for jpeg

--- a/sys/src/cmd/file.c
+++ b/sys/src/cmd/file.c
@@ -802,6 +802,7 @@
 	"\377\330\377\340",	"jpeg",				4,	"image/jpeg",
 	"\377\330\377\341",	"jpeg",				4,	"image/jpeg",
 	"\377\330\377\333",	"jpeg",				4,	"image/jpeg",
+	"\xff\xd8",		"jpeg",				2,	"image/jpeg",
 	"BM",			"bmp",				2,	"image/bmp", 
 	"\xD0\xCF\x11\xE0\xA1\xB1\x1A\xE1",	"microsoft office document",	8,	"application/doc",
 	"<MakerFile ",		"FrameMaker file",		11,	"application/framemaker",
--