From dc5bf2d6dcc41c492c1d7d26a66f35ca199be537 Mon Sep 17 00:00:00 2001 From: Theodore Dubois Date: Fri, 29 May 2020 17:57:56 -0700 Subject: [PATCH] Check for errors in sqlite3_step in fakefs_rebuild Pretty sure this causes #625. Don't know how it took this long to find... --- fs/fake-rebuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fake-rebuild.c b/fs/fake-rebuild.c index d25e93a37e..84aefa9ea3 100644 --- a/fs/fake-rebuild.c +++ b/fs/fake-rebuild.c @@ -71,7 +71,7 @@ int fakefs_rebuild(struct mount *mount) { for (unsigned i = 0; i < HASH_SIZE; i++) list_init(&hashtable[i]); - while (sqlite3_step(get_paths) == SQLITE_ROW) { + while (STEP(get_paths)) { const char *path = (const char *) sqlite3_column_text(get_paths, 0); ino_t inode = sqlite3_column_int64(get_paths, 1);