summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/alpm.c
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2005-10-09 01:40:49 +0200
committerJudd Vinet <judd@archlinux.org>2005-10-09 01:40:49 +0200
commit6f75de92b55d879abeb29b5d0aede2830ffbb1aa (patch)
tree1c3d6919d8252b9fc67570e3c5ed88d117bfe1e3 /lib/libalpm/alpm.c
parent79a20cdc9685b64f36eb15bc57c06209bceb225f (diff)
downloadpacman-6f75de92b55d879abeb29b5d0aede2830ffbb1aa.tar.gz
pacman-6f75de92b55d879abeb29b5d0aede2830ffbb1aa.tar.xz
added more error messages, enabled the db permission check in trans_commit
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r--lib/libalpm/alpm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c
index f7a1ec34..d0e31e52 100644
--- a/lib/libalpm/alpm.c
+++ b/lib/libalpm/alpm.c
@@ -615,8 +615,8 @@ int alpm_trans_commit()
ASSERT(trans != NULL, RET_ERR(PM_ERR_TRANS_NULL, -1));
ASSERT(trans->state == STATE_PREPARED, RET_ERR(PM_ERR_TRANS_NOT_PREPARED, -1));
- /* ORE
- ASSERT(handle->access != PM_ACCESS_RW, RET_ERR(PM_ERR_BAD_PERMS, -1));*/
+ /* Check for database R/W permission */
+ ASSERT(handle->access == PM_ACCESS_RW, RET_ERR(PM_ERR_BADPERMS, -1));
return(trans_commit(handle->trans));
}