root/trunk/server/patches/magic.patch

Revision 194, 5.6 KB (checked in by sander, 9 months ago)

Added a patch for Debian file magic

  • magic

    old new  
    19251925 
    19261926# ZIP archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu) 
    192719270       string          PK\003\004 
    1928 >4      byte            0x00            Zip archive data 
     1928>30     ubelong         !0x6d696d65     Zip archive data, at least v2.0 to extract 
     1929>>4     byte            0x00            Zip archive data 
    19291930!:mime  application/zip 
    1930 >4      byte            0x09            Zip archive data, at least v0.9 to extract 
     1931>>4     byte            0x09            Zip archive data, at least v0.9 to extract 
    19311932!:mime  application/zip 
    1932 >4      byte            0x0a            Zip archive data, at least v1.0 to extract 
     1933>>4     byte            0x0a            Zip archive data, at least v1.0 to extract 
    19331934!:mime  application/zip 
    1934 >4      byte            0x0b            Zip archive data, at least v1.1 to extract 
     1935>>4     byte            0x0b            Zip archive data, at least v1.1 to extract 
    19351936!:mime  application/zip 
    1936 >0x161  string          WINZIP          Zip archive data, WinZIP self-extracting 
     1937>>0x161 string          WINZIP          Zip archive data, WinZIP self-extracting 
    19371938!:mime  application/zip 
    1938 >4      byte            0x14 
    1939 >>30    ubelong         !0x6d696d65     Zip archive data, at least v2.0 to extract 
     1939>>4     byte            0x14 
    19401940!:mime  application/zip 
    19411941 
    19421942# OpenOffice.org / KOffice / StarOffice documents 
    19431943# Listed here because they ARE zip files 
    19441944# 
    19451945# From: Abel Cheung <abel@oaka.org> 
    1946 >4      byte            0x14 
    1947 >>30    string          mimetype 
     1946>30     string          mimetype 
    19481947 
    19491948# KOffice (1.2 or above) formats 
    1950 >>>50   string  vnd.kde.                KOffice (>=1.2) 
    1951 >>>>58  string  karbon                  Karbon document 
    1952 >>>>58  string  kchart                  KChart document 
    1953 >>>>58  string  kformula                KFormula document 
    1954 >>>>58  string  kivio                   Kivio document 
    1955 >>>>58  string  kontour                 Kontour document 
    1956 >>>>58  string  kpresenter              KPresenter document 
    1957 >>>>58  string  kspread                 KSpread document 
    1958 >>>>58  string  kword                   KWord document 
     1949>>50    string  vnd.kde.                KOffice (>=1.2) 
     1950>>>58   string  karbon                  Karbon document 
     1951>>>58   string  kchart                  KChart document 
     1952>>>58   string  kformula                KFormula document 
     1953>>>58   string  kivio                   Kivio document 
     1954>>>58   string  kontour                 Kontour document 
     1955>>>58   string  kpresenter              KPresenter document 
     1956>>>58   string  kspread                 KSpread document 
     1957>>>58   string  kword                   KWord document 
    19591958 
    19601959# OpenOffice formats (for OpenOffice 1.x / StarOffice 6/7) 
    1961 >>>50   string  vnd.sun.xml.            OpenOffice.org 1.x 
    1962 >>>>62  string  writer                  Writer 
    1963 >>>>>68 byte    !0x2e                   document 
    1964 >>>>>68 string  .template               template 
    1965 >>>>>68 string  .global                 global document 
    1966 >>>>62  string  calc                    Calc 
    1967 >>>>>66 byte    !0x2e                   spreadsheet 
    1968 >>>>>66 string  .template               template 
    1969 >>>>62  string  draw                    Draw 
    1970 >>>>>66 byte    !0x2e                   document 
    1971 >>>>>66 string  .template               template 
    1972 >>>>62  string  impress                 Impress 
    1973 >>>>>69 byte    !0x2e                   presentation 
    1974 >>>>>69 string  .template               template 
    1975 >>>>62  string  math                    Math document 
    1976 >>>>62  string  base                    Database file 
     1960>>50    string  vnd.sun.xml.            OpenOffice.org 1.x 
     1961>>>62   string  writer                  Writer 
     1962>>>>68  byte    !0x2e                   document 
     1963>>>>68  string  .template               template 
     1964>>>>68  string  .global                 global document 
     1965>>>62   string  calc                    Calc 
     1966>>>>66  byte    !0x2e                   spreadsheet 
     1967>>>>66  string  .template               template 
     1968>>>62   string  draw                    Draw 
     1969>>>>66  byte    !0x2e                   document 
     1970>>>>66  string  .template               template 
     1971>>>62   string  impress                 Impress 
     1972>>>>69  byte    !0x2e                   presentation 
     1973>>>>69  string  .template               template 
     1974>>>62   string  math                    Math document 
     1975>>>62   string  base                    Database file 
    19771976 
    19781977# OpenDocument formats (for OpenOffice 2.x / StarOffice >= 8) 
    19791978# http://lists.oasis-open.org/archives/office/200505/msg00006.html 
    1980 >>>50   string  vnd.oasis.opendocument. OpenDocument 
    1981 >>>>73  string  text 
    1982 >>>>>77 byte    !0x2d                   Text 
     1979>>50    string  vnd.oasis.opendocument. OpenDocument 
     1980>>>73   string  text 
     1981>>>>77  byte    !0x2d                   Text 
    19831982!:mime  application/vnd.oasis.opendocument.text 
    1984 >>>>>77 string  -template               Text Template 
    1985 >>>>>77 string  -web                    HTML Document Template 
    1986 >>>>>77 string  -master                 Master Document 
    1987 >>>>73  string  graphics                Drawing 
    1988 >>>>>81 string  -template               Template 
    1989 >>>>73  string  presentation            Presentation 
    1990 >>>>>85 string  -template               Template 
    1991 >>>>73  string  spreadsheet             Spreadsheet 
    1992 >>>>>84 string  -template               Template 
    1993 >>>>73  string  chart                   Chart 
    1994 >>>>>78 string  -template               Template 
    1995 >>>>73  string  formula                 Formula 
    1996 >>>>>80 string  -template               Template 
    1997 >>>>73  string  database                Database 
    1998 >>>>73  string  image                   Image 
     1983>>>>77  string  -template               Text Template 
     1984!:mime  application/vnd.oasis.opendocument.text-template 
     1985>>>>77  string  -web                    HTML Document Template 
     1986!:mime  application/vnd.oasis.opendocument.text-web 
     1987>>>>77  string  -master                 Master Document 
     1988!:mime  application/vnd.oasis.opendocument.text-master 
     1989>>>73   string  graphics 
     1990>>>>81  byte    !0x2d                   Drawing 
     1991!:mime  application/vnd.oasis.opendocument.graphics 
     1992>>>>81  string  -template               Template 
     1993!:mime  application/vnd.oasis.opendocument.graphics-template 
     1994>>>73   string  presentation 
     1995>>>>85  byte    !0x2d                   Presentation 
     1996!:mime  application/vnd.oasis.opendocument.presentation 
     1997>>>>85  string  -template               Template 
     1998!:mime  application/vnd.oasis.opendocument.presentation-template 
     1999>>>73   string  spreadsheet 
     2000>>>>84  byte    !0x2d                   Spreadsheet 
     2001!:mime  application/vnd.oasis.opendocument.spreadsheet 
     2002>>>>84  string  -template               Template 
     2003!:mime  application/vnd.oasis.opendocument.spreadsheet-template 
     2004>>>73   string  chart 
     2005>>>>78  byte    !0x2d                   Chart 
     2006!:mime  application/vnd.oasis.opendocument.chart 
     2007>>>>78  string  -template               Template 
     2008!:mime  application/vnd.oasis.opendocument.chart-template 
     2009>>>73   string  formula 
     2010>>>>80  byte    !0x2d                   Formula 
     2011!:mime  application/vnd.oasis.opendocument.formula 
     2012>>>>80  string  -template               Template 
     2013!:mime  application/vnd.oasis.opendocument.formula-template 
     2014>>>73   string  database                Database 
     2015!:mime  application/vnd.oasis.opendocument.database 
     2016>>>73   string  image 
     2017>>>>78  byte    !0x2d                   Image 
     2018!:mime  application/vnd.oasis.opendocument.image 
     2019>>>>78  string  -template               Template 
     2020!:mime  application/vnd.oasis.opendocument.image-template 
    19992021 
    20002022# Zoo archiver 
    2001202320      lelong          0xfdc4a7dc      Zoo archive data 
Note: See TracBrowser for help on using the browser.