From b6841250b63a01f99953654b019bf6c9363c7ab7 Mon Sep 17 00:00:00 2001 From: Dwayne Litzenberger Date: Sat, 31 Mar 2018 18:58:01 -0700 Subject: [PATCH] Don't assume every *.key file is an Apple Keynote file https://bugs.freedesktop.org/show_bug.cgi?id=93656 --- freedesktop.org.xml.in | 3 ++- tests/list | 3 +++ tests/test-garbage.key | Bin 0 -> 259 bytes tests/test-secret.key | 35 +++++++++++++++++++++++++++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 tests/test-garbage.key create mode 100644 tests/test-secret.key diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index 72c41d6..ad20fee 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -293,6 +293,7 @@ command to generate the output files. + <_comment>detached OpenPGP signature @@ -7027,7 +7028,7 @@ command to generate the output files. - + diff --git a/tests/list b/tests/list index 269c50a..34b231d 100644 --- a/tests/list +++ b/tests/list @@ -643,6 +643,9 @@ COPYING.asc application/pgp-signature xoo test-public-key.asc application/pgp-keys xoo test-secret-key.skr application/pgp-keys ooo test-secret-key.asc application/pgp-keys xoo +# files named *.key shouldn't be detected as Apple Keynote +test-secret.key application/pgp-keys x +test-garbage.key application/octet-stream x # copied from https://bitbucket.org/scons/scons/raw/f0d4664d36f8a4d4da53178cf947c86c86db3cb7/SConstruct SConstruct text/x-scons oxo diff --git a/tests/test-garbage.key b/tests/test-garbage.key new file mode 100644 index 0000000000000000000000000000000000000000..55f65c3aac3ad76d066f8e9d2929673518c024e3 GIT binary patch literal 259 zcmV+e0sQ_aA+ziPp~{;~u1RMK*j{0D+8cW>8A9f?ji}Hf-b$sNwpg;IT!us~?$IsEo6aJHiD5)TyorO$Mocg^KY{$b~g5!%bx(J2qqPGeif3Qp{7D%XXiljos>_