summaryrefslogtreecommitdiffstats
path: root/src/audit.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-01-17 11:07:56 +0200
committerTimo Teras <timo.teras@iki.fi>2009-01-17 11:08:48 +0200
commita98b57b1ae6f9fb04ddcc6876451632d519a0081 (patch)
treeacafb1cf2dd44fbbab363fc714582da5b9e21c62 /src/audit.c
parent24b424a4580555579b11ab1d66ee3dab7751dfb5 (diff)
downloadapk-tools-a98b57b1ae6f9fb04ddcc6876451632d519a0081.tar.bz2
apk-tools-a98b57b1ae6f9fb04ddcc6876451632d519a0081.tar.xz
db: database locking and creation to part of opening it
Add flags field to db open call. Also make error reporting quite a bit more detailed.
Diffstat (limited to 'src/audit.c')
-rw-r--r--src/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audit.c b/src/audit.c
index c080f2f..f45b9b9 100644
--- a/src/audit.c
+++ b/src/audit.c
@@ -116,7 +116,7 @@ static int audit_main(void *ctx, int argc, char **argv)
return 2;
}
- r = apk_db_open(&db, apk_root);
+ r = apk_db_open(&db, apk_root, APK_OPENF_READ);
if (r != 0) {
apk_error("APK database not present");
return 1;