diff --git a/ChangeLog b/ChangeLog index d50484e9..ee91c11e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ v0.71.4 12-Aug-2005 mbfido: Added extra debug logging to trace an SIGSEG when forwarding files. + Added error logmessage in case *.msg path isn't defined. v0.71.3 13-Jun-2005 - 12-Aug-2005 diff --git a/mbfido/msg.c b/mbfido/msg.c index 22ff7235..b37d57df 100644 --- a/mbfido/msg.c +++ b/mbfido/msg.c @@ -53,6 +53,11 @@ int toss_msgs(void) struct dirent *de; int files = 0; + if (strlen(CFG.msgs_path) == 0) { + WriteError("No path defined for *.msg mail, check setup 1.4 screen 2, item 10"); + return -1; + } + if ((dp = opendir(CFG.msgs_path)) == NULL) { WriteError("$Can't opendir %s", CFG.msgs_path); return -1;