summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorWichert Akkerman <wakkerma@debian.org>1999-10-06 13:04:41 +0000
committerWichert Akkerman <wakkerma@debian.org>1999-10-06 13:04:41 +0000
commit6bdebc1cb00cb3cced0bd0ca8e46bf22f1205f1a (patch)
tree29f0bf83e20501447cf8a83f6de7c26b6c8f7f47 /lib
parent60e8a0dd4007dbd069bfc09f7c1afcd1427f9ca7 (diff)
downloaddpkg-6bdebc1cb00cb3cced0bd0ca8e46bf22f1205f1a.tar.gz
Updates for Hurd
Diffstat (limited to 'lib')
-rw-r--r--lib/lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lock.c b/lib/lock.c
index 624646823..b4b0e601a 100644
--- a/lib/lock.c
+++ b/lib/lock.c
@@ -42,7 +42,7 @@ static void cu_unlockdb(int argc, void **argv) {
fl.l_type= F_UNLCK;
fl.l_whence= SEEK_SET;
fl.l_start= 0;
- fl.l_len= 1;
+ fl.l_len= 0;
if (fcntl(dblockfd,F_SETLK,&fl) == -1)
ohshite(_("unable to unlock dpkg status database"));
}
@@ -72,7 +72,7 @@ void lockdatabase(const char *admindir) {
fl.l_type= F_WRLCK;
fl.l_whence= SEEK_SET;
fl.l_start= 0;
- fl.l_len= 1;
+ fl.l_len= 0;
if (fcntl(dblockfd,F_SETLK,&fl) == -1) {
if (errno == EWOULDBLOCK || errno == EAGAIN)
ohshit(_("status database area is locked - another dpkg/dselect is running"));