mirror of
https://github.com/opnsense/src.git
synced 2026-03-12 05:32:15 -04:00
Merge the latest file(1) in.
Relevent Changelog:
- extend the support for ${x?:} expansions for magic descriptions
- add support for ${x?:} in mime types to handle pie binaries.
- add support for negative offsets (offsets from the end of file)
- close the file on error when writing magic
Relnotes: yes
22 lines
816 B
Text
22 lines
816 B
Text
|
|
#------------------------------------------------------------------------------
|
|
# $File: mozilla,v 1.8 2018/01/17 12:08:36 christos Exp $
|
|
# mozilla: file(1) magic for Mozilla XUL fastload files
|
|
# (XUL.mfasl and XPC.mfasl)
|
|
# URL: http://www.mozilla.org/
|
|
# From: Josh Triplett <josh@freedesktop.org>
|
|
|
|
0 string XPCOM\nMozFASL\r\n\x1A Mozilla XUL fastload data
|
|
0 string mozLz4a Mozilla lz4 compressed bookmark data
|
|
|
|
# From: Joerg Jenderek
|
|
# URL: https://en.wikipedia.org/wiki/Firefox_4
|
|
# Reference: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
|
|
# Note: Most ZIP utilities are able to extract such archives
|
|
# maybe only partly or after some warnings. Example:
|
|
# zip -FF omni.ja --out omni.zip
|
|
4 string PK\001\002 Mozilla archive omni.ja
|
|
!:mime application/x-zip
|
|
!:ext ja
|
|
# TODO:
|
|
#>4 use zip-dir-entry
|