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 + src/pacman.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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, */ diff --git a/src/pacman.h b/src/pacman.h index f6a76c7b..d0b5a5a1 100644 --- a/src/pacman.h +++ b/src/pacman.h @@ -22,7 +22,7 @@ #define _PAC_PACMAN_H #ifndef PACVER -#define PACVER "2.9.1" +#define PACVER "2.9.2" #endif #ifndef PKGDIR -- cgit v1.2.3-24-g4f1b