summaryrefslogtreecommitdiff
path: root/python/rpmmodule.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-03-31 17:23:13 +0000
committerjbj <devnull@localhost>2000-03-31 17:23:13 +0000
commitd01b8832553b6576b2c9ae31fadb5f3bf850f210 (patch)
treecd77abc35ca28af5c39999a5dee4cff62b14a6da /python/rpmmodule.c
parent0833c5686ab2aa82a2afeb295adca3d60af6612e (diff)
downloadrpm-d01b8832553b6576b2c9ae31fadb5f3bf850f210.tar.gz
rpm-d01b8832553b6576b2c9ae31fadb5f3bf850f210.tar.bz2
rpm-d01b8832553b6576b2c9ae31fadb5f3bf850f210.zip
Get the database permissions right.
CVS patchset: 3650 CVS date: 2000/03/31 17:23:13
Diffstat (limited to 'python/rpmmodule.c')
-rw-r--r--python/rpmmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/rpmmodule.c b/python/rpmmodule.c
index aaa684bdc..5f3ae7445 100644
--- a/python/rpmmodule.c
+++ b/python/rpmmodule.c
@@ -506,7 +506,7 @@ static rpmdbObject * rpmOpenDB(PyObject * self, PyObject * args) {
o = PyObject_NEW(rpmdbObject, &rpmdbType);
o->db = NULL;
- if (rpmdbOpen(root, &o->db, forWrite ? O_RDWR | O_CREAT: O_RDONLY, 0)) {
+ if (rpmdbOpen(root, &o->db, forWrite ? O_RDWR | O_CREAT: O_RDONLY, 0644)) {
char * errmsg = "cannot open database in %s";
char * errstr = NULL;
int errsize;