diff options
author | Varun Naik <vcnaik94@gmail.com> | 2019-07-14 05:01:53 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-15 00:22:29 +0200 |
commit | 02638d1e1153eb89d51a72de51ad854a88c9a178 (patch) | |
tree | a7088f78e1e48ec38c3830041fd43ba6da2040da /Documentation/config/blame.txt | |
parent | Git 2.22 (diff) | |
download | git-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 'Documentation/config/blame.txt')
0 files changed, 0 insertions, 0 deletions