From 720051474531025496103898f69e114757efe79b Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 21 Sep 2026 21:58:47 -1000 Subject: Test the hardening pass --- tests/t0302-home-access.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/t0302-home-access.sh') diff --git a/tests/t0302-home-access.sh b/tests/t0302-home-access.sh index 89aa00f..e0da1f2 100755 --- a/tests/t0302-home-access.sh +++ b/tests/t0302-home-access.sh @@ -24,13 +24,14 @@ strace true 2>/dev/null || { exit } -test_no_home_access () { +test_no_home_access() { # A home that happened to exist would be one git may legitimately # read, leaving the check below with nothing to catch, so extend the # path until nothing is there. missing_home="/path/to/some/place/that/does/not/possibly/exist" depth=0 - while test -d "$missing_home"; do + while test -d "$missing_home" + do depth=$((depth + 1)) missing_home="$missing_home/$depth" done && -- cgit