summaryrefslogtreecommitdiff
path: root/lib/rpmdb.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-02-15 00:10:29 +0000
committerewt <devnull@localhost>1996-02-15 00:10:29 +0000
commit030a88838a5c2ed2d4e0807edb3a01c96557deb5 (patch)
treed73c6e16549d9034b01a236d15fcf887bb387b1a /lib/rpmdb.c
parentea3e7dcddb02ad07b57d1456480a9abd5c9f0f8c (diff)
downloadrpm-030a88838a5c2ed2d4e0807edb3a01c96557deb5.tar.gz
rpm-030a88838a5c2ed2d4e0807edb3a01c96557deb5.tar.bz2
rpm-030a88838a5c2ed2d4e0807edb3a01c96557deb5.zip
don't open the database O_EXCL - we need to use locking instead!
CVS patchset: 279 CVS date: 1996/02/15 00:10:29
Diffstat (limited to 'lib/rpmdb.c')
-rw-r--r--lib/rpmdb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/rpmdb.c b/lib/rpmdb.c
index 9883c6d3d..597d3100b 100644
--- a/lib/rpmdb.c
+++ b/lib/rpmdb.c
@@ -29,9 +29,6 @@ int rpmdbOpen (char * prefix, rpmdb *rpmdbp, int mode, int perms) {
if (mode & O_WRONLY)
return 0;
- if (mode & O_RDWR)
- mode |= O_EXCL;
-
strcpy(filename, prefix);
strcat(filename, "/var/lib/rpm/packages.rpm");
db.pkgs = faOpen(filename, mode, 0644);