]> git.marmaro.de Git - mmh/blobdiff - uip/pick.c
Ensure that message boundaries generated by mhsign are ascii-only
[mmh] / uip / pick.c
index 049be8a7610feced62061e417385ce3c9368a3dc..b1a946d686520afc51bcf1a04332f70b55f3392f 100644 (file)
@@ -16,6 +16,7 @@
 #include <sysexits.h>
 #include <ctype.h>
 #include <regex.h>
+#include <libgen.h>
 
 #ifdef HAVE_SYS_TIME_H
 # include <sys/time.h>
@@ -1330,6 +1331,7 @@ createpickthread(char *msgs)
        for (i = 0; i < files.size; i++) {
                buf = getthreadid(files.msgs[i]);
                if (!buf) {
+                       adios(EX_DATAERR, NULL, "message %s is not part of a thread", basename(files.msgs[i]));
                        continue;
                }