diff options
Diffstat (limited to 'src/stat.c')
-rw-r--r-- | src/stat.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -426,7 +426,8 @@ import (const char *dirname) dirname, strerror (errno)); else if (S_ISREG (st.st_mode)) { - open_db (TAGR_DB_WR); + if (open_db (TAGR_DB_WR)) + exit (EX_UNAVAILABLE); if (import_log (dirname) == 0) count++; close_db (); @@ -445,7 +446,8 @@ import (const char *dirname) switch (rc) { case 0: - open_db (TAGR_DB_WR); + if (open_db (TAGR_DB_WR)) + exit (EX_UNAVAILABLE); for (i = 0; i < gl.gl_pathc; i++) if (import_log (gl.gl_pathv[i]) == 0) count++; |