From fe73d839b4ed8348a783173ecea37ca90dd578d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 8 Sep 2021 09:34:42 +0300 Subject: application/x-apple-systemprofiler+xml: require _SPCommandLineArguments in plist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Look for `_SPCommandLineArguments` in addition to plist root element to distinguish from other property list XML files. Our offset specifiers aren't that fancy, so this can trigger on files that have the above string ยด_before_ ``, 384 is arbitrary guesswork. Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/169 --- tests/mime-detection/test_apple_systemprofiler.spx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/mime-detection/test_apple_systemprofiler.spx b/tests/mime-detection/test_apple_systemprofiler.spx index 28834e96..cdafe0ee 100644 --- a/tests/mime-detection/test_apple_systemprofiler.spx +++ b/tests/mime-detection/test_apple_systemprofiler.spx @@ -2,6 +2,9 @@ + + _SPCommandLineArguments + -- cgit v1.2.1