summaryrefslogtreecommitdiffstats
path: root/advice.h
diff options
context:
space:
mode:
authorVarun Naik <vcnaik94@gmail.com>2019-07-14 05:01:53 +0200
committerJunio C Hamano <gitster@pobox.com>2019-07-15 00:22:29 +0200
commit02638d1e1153eb89d51a72de51ad854a88c9a178 (patch)
treea7088f78e1e48ec38c3830041fd43ba6da2040da /advice.h
parentGit 2.22 (diff)
downloadgit-02638d1e1153eb89d51a72de51ad854a88c9a178.tar.xz
git-02638d1e1153eb89d51a72de51ad854a88c9a178.zip
read-cache.c: do not die if mmap fails
do_read_index() mmaps the index, or tries to die with an error message on failure. It should call xmmap_gently(), which returns MAP_FAILED, rather than xmmap(), which dies with its own error message. An easy way to cause this mmap to fail is by setting $GIT_INDEX_FILE to a path to a directory and then invoking any command that reads from the index. Signed-off-by: Varun Naik <vcnaik94@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'advice.h')
0 files changed, 0 insertions, 0 deletions