X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=mbox.c;h=f5342a7115f886be060f49d1a3fbd77f1fc6ef8b;hb=b777618bc61046875b5c79c7126f64496c6e5a93;hp=3d1a31cc6571a993e351724ab6ee8b0576450660;hpb=25bf57d598476b329536fa3f748cc0c529fef6bd;p=apps%2Fmadmutt.git diff --git a/mbox.c b/mbox.c index 3d1a31c..f5342a7 100644 --- a/mbox.c +++ b/mbox.c @@ -1161,7 +1161,7 @@ int mbox_is_magic (const char* path) { FILE* f; char tmp[_POSIX_PATH_MAX]; - if (stat (path, &st) == -1) + if (stat (path, &st) == -1 || S_ISDIR(st.st_mode)) return (-1); if (st.st_size == 0) {