From 4795965caf371a55285678e5860ae66e926ebd95 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sat, 25 Sep 2004 18:03:03 +0000 Subject: Imported from pacman-2.9.2.tar.gz --- src/db.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/db.c') diff --git a/src/db.c b/src/db.c index bc332466..4d856479 100644 --- a/src/db.c +++ b/src/db.c @@ -148,6 +148,7 @@ pkginfo_t* db_scan(pacdb_t *db, char *target, unsigned int inforeq) /* stat the entry, make sure it's a directory */ snprintf(path, PATH_MAX, "%s/%s", db->path, name); if(stat(path, &sbuf) || !S_ISDIR(sbuf.st_mode)) { + ent = readdir(db->dir); continue; } /* truncate the string at the second-to-last hyphen, */ -- cgit v1.2.3-24-g4f1b