From c71bc556c1cbc334f6be68ac355be0e385da8698 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:52:45 +0000 Subject: File locking fix for hurd Author: jgg Date: 1999-02-03 23:13:37 GMT File locking fix for hurd --- apt-pkg/contrib/fileutl.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apt-pkg') diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index b65757925..6baafcfcf 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: fileutl.cc,v 1.17 1999/01/18 06:20:08 jgg Exp $ +// $Id: fileutl.cc,v 1.18 1999/02/03 23:13:37 jgg Exp $ /* ###################################################################### File Utilities @@ -68,10 +68,10 @@ int GetLock(string File,bool Errors) // Aquire a write lock struct flock fl; - fl.l_type= F_WRLCK; - fl.l_whence= SEEK_SET; - fl.l_start= 0; - fl.l_len= 1; + fl.l_type = F_WRLCK; + fl.l_whence = SEEK_SET; + fl.l_start = 0; + fl.l_len = 0; if (fcntl(FD,F_SETLK,&fl) == -1) { if (Errors == true) -- cgit v1.2.3