diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Test the hardening pass
Diffstat (limited to 'tests/t0302-home-access.sh')
| -rwxr-xr-x | tests/t0302-home-access.sh | 5 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
1 file changed, 3 insertions, 2 deletions
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 && |
