File: remove-access.patch

package info (click to toggle)
uid-wrapper 1.0.2-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 328 kB
  • ctags: 188
  • sloc: ansic: 1,583; makefile: 48; sh: 11
file content (22 lines) | stat: -rw-r--r-- 733 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Descriptipn: Disable access() checks, which break on arm64
Bug-Debian: https://git.samba.org/?p=uid_wrapper.git;a=commitdiff;h=1122f2a1046892100e9157fbfc91178685127a89
Author: Jelmer Vernooij <jelmer@debian.org>
Status: Cherry-picked from upstream, 1122f2a1046892100e9157fbfc91178685127a89

diff --git a/tests/testsuite.c b/tests/testsuite.c
index 828cb42..c88b051 100644
--- a/tests/testsuite.c
+++ b/tests/testsuite.c
@@ -195,12 +195,6 @@ static void test_uwrap_syscall(void **state)
 	rc = syscall(SYS_getpid);
 	assert_int_equal(rc, getpid());
 
-	rc = access(".", R_OK);
-	assert_int_equal(rc, 0);
-
-	rc = syscall(SYS_access, ".", R_OK);
-	assert_int_equal(rc, 0);
-
 	ZERO_STRUCT(tv1);
 	ZERO_STRUCT(tv2);
 	ZERO_STRUCT(tz1);