# Confusing behavior from "config: honor file permission bits"

1 messages from 2026-12-02 to 2026-12-02. Participants: Antonio Russo.
Thread: https://gitlist.dev/t/66971

## Antonio Russo, 2026-12-02 06:46

Subject: Confusing behavior from "config: honor file permission bits"
Message-ID: <88e86072-779f-4ae9-a7ca-cd8dd5bc21ce@aerusso.net>
URL: https://gitlist.dev/e/88e86072-779f-4ae9-a7ca-cd8dd5bc21ce%40aerusso.net

```
Hello,

116a417a61 introduced a permission check that claims to honor file
permissions.  However, the permission bits are not actually checked;
instead access(2) is used, which gives a materially different answer
for, e.g., the root user.   In particular, t1300 fails if you try to
run the tests as root.  This may be frustrating for people packaging
git (maybe they build it as root on a VM, or with fakeroot, for
example).

Best,
Antonio Russo


```
