mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 8649f9c225664c9b9efc9b6e39c59fa79715df68
parent 2db5551a7e3b9820780266d79865b9c2a94df81c
Author: Leah Neukirchen <leah@vuxu.org>
Date:   Thu, 29 Jun 2017 15:04:57 +0200

seq: blaze822_seq_open: display error when opening the sequence failed

Diffstat:
seq.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/seq.c b/seq.c @@ -56,8 +56,12 @@ blaze822_seq_open(char *file) char *map; off_t len; - if (slurp(file, &map, &len) != 0) + int r = slurp(file, &map, &len); + if (r != 0) { + fprintf(stderr, "could not read sequence '%s': %s\n", + file, strerror(r)); return 0; + } return map; }