index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Florian Pritz <bluewind@xinu.at> | 2012-02-07 18:43:59 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-13 10:02:02 -0600 |
commit | 20a16f55b32da071d362c2fa3faf1f55285d13a9 (patch) | |
tree | 00bb4cf9fcf0846d2a77a79d1317c66fecee19d1 /lib/libalpm/be_sync.c | |
parent | f55be4897799c5a6dcb454455ad9edcfc36f8495 (diff) |
-rw-r--r-- | lib/libalpm/be_sync.c | 2 |
diff --git a/lib/libalpm/be_sync.c b/lib/libalpm/be_sync.c index c4673b1b..f1621996 100644 --- a/lib/libalpm/be_sync.c +++ b/lib/libalpm/be_sync.c @@ -86,7 +86,7 @@ static int sync_db_validate(alpm_db_t *db) } /* we can skip any validation if the database doesn't exist */ - if(access(dbpath, R_OK) != 0 && errno == ENOENT) { + if(_alpm_access(db->handle, NULL, dbpath, R_OK) != 0 && errno == ENOENT) { db->status &= ~DB_STATUS_EXISTS; db->status |= DB_STATUS_MISSING; _alpm_log(db->handle, ALPM_LOG_WARNING, |