]> git.ipfire.org Git - thirdparty/git.git/commit
mingw: be more informative when ownership check fails on FAT32
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 8 Aug 2022 13:27:49 +0000 (13:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 Aug 2022 16:31:41 +0000 (09:31 -0700)
commit7c83470e64eadab74689427fcd95e72f0a772ab5
treeaf263dcc51eb0cc8340e5fbba954843ee5c95ae7
parente883e04b68ba7393029bcbeaa2aacb3dff5d3fbd
mingw: be more informative when ownership check fails on FAT32

The FAT file system has no concept of ACLs. Therefore, it cannot store
any ownership information anyway, and the `GetNamedSecurityInfoW()` call
pretends that everything is owned "by the world".

Let's special-case that scenario and tell the user what's going on.

This addresses https://github.com/git-for-windows/git/issues/3886

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c