X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=notmuch-new.c;h=ba5bb5ac7b7f202ccbd7831d2105e780fb03eb36;hb=5c7c6c0baefaf63d2b79c014b85c391a66261feb;hp=e32b92a51de1b8c0c9bd7797edc84229e8424ff5;hpb=c984fc43cc841b1453a10f92c227466a2c676364;p=notmuch diff --git a/notmuch-new.c b/notmuch-new.c index e32b92a5..ba5bb5ac 100644 --- a/notmuch-new.c +++ b/notmuch-new.c @@ -149,7 +149,7 @@ add_files_recursive (notmuch_database_t *notmuch, /* If this directory hasn't been modified since the last * add_files, then we only need to look further for * sub-directories. */ - if (path_mtime <= path_dbtime && entry->d_type != DT_DIR) + if (path_mtime <= path_dbtime && entry->d_type == DT_REG) continue; /* Ignore special directories to avoid infinite recursion.