List for cgit developers and users
 help / color / mirror / Atom feed
From: Peter Colberg <>
Cc: Peter Colberg <>,
	Sakura286 <>, Paul Wise <>
Subject: [PATCH v1] tests: fix test_no_home_access on riscv64
Date: Sat, 17 Sep 2022 20:40:59 -0400	[thread overview]
Message-ID: <> (raw)

On riscv64, access(2) does not exist and faccessat(2) is called with
the directory file descriptor set to AT_FDCWD, which behaves the
same as access(2). Trace access(2), faccessat(2), and faccessat2(2)
to ease porting to future architectures and do not fail if any of
these does not exist depending on architecture and kernel version.

Co-Developed-by: Sakura286 <>
Co-Developed-by: Paul Wise <>
Signed-off-by: Peter Colberg <>
 tests/ | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/ b/tests/
index 189ef28..f67f553 100755
--- a/tests/
+++ b/tests/
@@ -24,7 +24,8 @@ test_no_home_access () {
 		-E HOME="$non_existent_path" \
 		-E CGIT_CONFIG="$PWD/cgitrc" \
 		-E QUERY_STRING="url=$1" \
-		-e access -f -o strace.out cgit &&
+		-e '?access,?faccessat,?faccessat2' \
+		-f -o strace.out cgit &&
 	! grep "$non_existent_path" strace.out

                 reply	other threads:[~2022-09-18  0:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).