summaryrefslogtreecommitdiff
path: root/t/t9153
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2015-05-28 04:03:01 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-05-28 11:34:06 -0700
commit0e8771f1984c468b0f41a8c779c034ffc48530e5 (patch)
tree34eee68c0e2ccf112c35efb8415ac975f4ba4fa8 /t/t9153
parentconfig.c: avoid xmmap error messages (diff)
downloadtgif-0e8771f1984c468b0f41a8c779c034ffc48530e5.tar.xz
config.c: rewrite ENODEV into EISDIR when mmap fails
If we try to mmap a directory, we'll get ENODEV. This translates to "no such device" for the user, which is not very helpful. Since we've just fstat()'d the file, we can easily check whether the problem was a directory to give a better message. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9153')
0 files changed, 0 insertions, 0 deletions