summaryrefslogtreecommitdiff
path: root/repo/util/tor/0002-disable-wildcard-escaping-test_patch
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-07 13:50:28 +0100
committerdavidovski <david@davidovski.xyz>2022-05-07 13:50:28 +0100
commit213021de0aaf5439db7d58ca1447db4ae6af92be (patch)
treea2adcfe44a186f9a61b92c5ca80d38b6f4017fa0 /repo/util/tor/0002-disable-wildcard-escaping-test_patch
parentfd7adb2f3a9d9d239c90742366aec369966a3a03 (diff)
added tor and xss-lock
Diffstat (limited to 'repo/util/tor/0002-disable-wildcard-escaping-test_patch')
-rw-r--r--repo/util/tor/0002-disable-wildcard-escaping-test_patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/repo/util/tor/0002-disable-wildcard-escaping-test_patch b/repo/util/tor/0002-disable-wildcard-escaping-test_patch
new file mode 100644
index 0000000..ee4f280
--- /dev/null
+++ b/repo/util/tor/0002-disable-wildcard-escaping-test_patch
@@ -0,0 +1,25 @@
+This will only fail on aarch64 and s390x, for some reason.
+--- a/src/test/test_util.c
++++ b/src/test/test_util.c
+@@ -4633,21 +4633,6 @@ test_util_glob(void *ptr)
+ TEST("file1"PATH_SEPARATOR"*");
+ EXPECT_EMPTY();
+
+-#ifndef _WIN32
+- // test wildcard escaping
+- TEST("\\*");
+- EXPECT_EMPTY();
+-
+- if (getuid() != 0) {
+- // test forbidden directory, if we're not root.
+- // (Root will be able to see this directory anyway.)
+- tor_asprintf(&pattern, "%s"PATH_SEPARATOR"*"PATH_SEPARATOR"*", dirname);
+- results = tor_glob(pattern);
+- tor_free(pattern);
+- tt_assert(!results);
+- }
+-#endif /* !defined(_WIN32) */
+-
+ #undef TEST
+ #undef EXPECT
+ #undef EXPECT_EMPTY