]> git.ipfire.org Git - thirdparty/git.git/commit - config.c
wrapper.c: add and use warn_on_fopen_errors()
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 3 May 2017 10:16:49 +0000 (17:16 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 May 2017 03:33:55 +0000 (12:33 +0900)
commit11dc1fcb3fa53f5a46486daa7cb38ed387153f2e
tree98bf996bbac5e5c0b85ee1673a83d14a8ae0fbab
parent8e178ec4d072da4cd8f4449e17aef3aff5b57f6a
wrapper.c: add and use warn_on_fopen_errors()

In many places, Git warns about an inaccessible file after a fopen()
failed. To discern these cases from other cases where we want to warn
about inaccessible files, introduce a new helper specifically to test
whether fopen() failed because the current user lacks the permission to
open file in question.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c
dir.c
git-compat-util.h
t/t1308-config-set.sh
wrapper.c