[file-roller] glib-utils: Add Zstandard magic bytes



commit a359c67e898de1eda3018c7665a053626853eb12
Author: Felix Riemann <friemann gnome org>
Date:   Sun Sep 29 15:07:04 2019 +0200

    glib-utils: Add Zstandard magic bytes
    
    This change proposed by Sergey Ponomarev should improve the
    file type matching on non-bleeding-edge distros.

 src/glib-utils.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/glib-utils.c b/src/glib-utils.c
index c3901410..048ab425 100644
--- a/src/glib-utils.c
+++ b/src/glib-utils.c
@@ -1227,6 +1227,7 @@ _g_mime_type_get_from_content (char  *buffer,
                { 0,  4, "PK\003\004",                           "application/zip"             },
                { 0,  8, "PK00PK\003\004",                       "application/zip"             },
                { 0,  4, "LRZI",                                 "application/x-lrzip"         },
+               { 0,  4, "\x28\xB5\x2F\xFD",                     "application/zstd"            },
        };
 
        int  i;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]