]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
notmuch-new: Fix notmuch new to look at files within symbolic links
[notmuch] / notmuch-new.c
index e32b92a51de1b8c0c9bd7797edc84229e8424ff5..ba5bb5ac7b7f202ccbd7831d2105e780fb03eb36 100644 (file)
@@ -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.