diff options
author | Judd Vinet <judd@archlinux.org> | 2004-09-25 20:03:03 +0200 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2004-09-25 20:03:03 +0200 |
commit | 4795965caf371a55285678e5860ae66e926ebd95 (patch) | |
tree | 8267165d3d41a31b916ab4b1c364ec63708edcfb /src/db.c | |
parent | deff79c76c96ea1fd1f3e9eb682a9f9572a9e58e (diff) | |
download | pacman-4795965caf371a55285678e5860ae66e926ebd95.tar.gz pacman-4795965caf371a55285678e5860ae66e926ebd95.tar.xz |
Imported from pacman-2.9.2.tar.gz
Diffstat (limited to 'src/db.c')
-rw-r--r-- | src/db.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, */ |