]> git.ipfire.org Git - thirdparty/git.git/commit - t/t0001-init.sh
t0001: skip test with restrictive permissions if getpwd(3) respects them
authorRené Scharfe <l.s.r@web.de>
Mon, 7 Aug 2017 11:04:18 +0000 (13:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Aug 2017 17:35:18 +0000 (10:35 -0700)
commitbed67874e235e8f128607728f9a03c71e92cb955
treecf3778ae05b35c38c07dd991920e3d9a634cb2b5
parenta54e938e5b53c76ebcd5c068a4f74739c1c68bac
t0001: skip test with restrictive permissions if getpwd(3) respects them

The sub-test "init in long base path" in t0001 checks the ability to
handle long base paths with restrictive permissions (--x).  On OpenBSD
getcwd(3) fails in that case even for short paths.  Check the two
aspects separately by trying to use a long base path both with and
without execute-only permissions.  Only attempt the former if we know
that getcwd(3) doesn't care.

Original-patch-by: David Coppa <dcoppa@openbsd.org>
Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0001-init.sh