summaryrefslogtreecommitdiffstats
path: root/RPM4/src
diff options
context:
space:
mode:
authortv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-01-02 16:18:27 +0000
committertv <tv@971eb68f-4bfb-0310-8326-d2484c010a4c>2012-01-02 16:18:27 +0000
commite729ec3b2463bab2f5c3a0932931934a0a6191a5 (patch)
treecc9b6943f8ba0148b09a5c8ed85724af1acbe1a0 /RPM4/src
parent648c944b62cdb647e78281e2dc5ac89c8dde56c4 (diff)
downloadperl-RPM4-e729ec3b2463bab2f5c3a0932931934a0a6191a5.tar
perl-RPM4-e729ec3b2463bab2f5c3a0932931934a0a6191a5.tar.gz
perl-RPM4-e729ec3b2463bab2f5c3a0932931934a0a6191a5.tar.bz2
perl-RPM4-e729ec3b2463bab2f5c3a0932931934a0a6191a5.tar.xz
perl-RPM4-e729ec3b2463bab2f5c3a0932931934a0a6191a5.zip
(rpmdbinit) do all the needed work
git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@176 971eb68f-4bfb-0310-8326-d2484c010a4c
Diffstat (limited to 'RPM4/src')
-rw-r--r--RPM4/src/RPM4.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs
index 99c251e..6d95edb 100644
--- a/RPM4/src/RPM4.xs
+++ b/RPM4/src/RPM4.xs
@@ -1371,7 +1371,7 @@ rpmdbinit(rootdir = NULL)
/* rpm{db,ts}init is deprecated, we open a database with create flags
* and close it */
/* 0 on success */
- RETVAL = rpmtsOpenDB(ts, O_RDWR | O_CREAT);
+ RETVAL = rpmtsInitDB(ts, 0644);
ts = rpmtsFree(ts);
OUTPUT:
RETVAL