on mmap failure show on which file it failed - catpoint - Catpoint simple presenting software. HTML git clone git://bitreich.org/catpoint/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/catpoint/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit e8f0e9f302546f8844785b2674f9c3fd4fc6a4b2 DIR parent dda57f5fe894543b4ccbb5f0aee5302adfdbb5b0 HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Sat, 29 May 2021 17:51:18 +0200 on mmap failure show on which file it failed Signed-off-by: Christoph Lohmann <20h@r-36.net> Diffstat: M catpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/catpoint.c b/catpoint.c @@ -53,7 +53,7 @@ loadcurrentslide(char **argv, int slide) err(1, "fstat: %s", slidefiles[slide]); currentslidep = mmap(NULL, statbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0); if (currentslidep == MAP_FAILED) - err(1, "mmap"); + err(1, "mmap: %s", slidefiles[slide]); currentslidelen = statbuf.st_size; close(fd); }