threads / discuss / 66971

Confusing behavior from "config: honor file permission bits"

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

## tl;dr

One message between Dec 2, 2026 and Dec 2, 2026.

replies: 0people: 1as markdown or json

Antonio Russo· Dec 2, 2026, 06:46 UTC · lore
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

← back to recent threads