diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:45 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:45 +0000 |
commit | c71bc556c1cbc334f6be68ac355be0e385da8698 (patch) | |
tree | eb6913bf8a5ab4473970eeda0b2007f413b1835c | |
parent | 995246fb4005cd40b6825ee3b13049be54316270 (diff) |
File locking fix for hurd
Author: jgg
Date: 1999-02-03 23:13:37 GMT
File locking fix for hurd
-rw-r--r-- | apt-pkg/contrib/fileutl.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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) |