This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] lockf() fix


This seems to only affect sparc, sparc64 and alpha, since they are the
only ones that define F_RDLCK to something other than 0 (1, in each case).

Thanks to Anton Blanchard for helping me track this down.

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'
--- ./sysdeps/generic/lockf.c~	Fri Oct 27 18:43:40 2000
+++ ./sysdeps/generic/lockf.c	Fri Oct 27 18:34:25 2000
@@ -32,6 +32,7 @@
   memset ((char *) &fl, '\0', sizeof (fl));
 
   /* lockf is always relative to the current file position.  */
+  fl.l_type = F_RDLCK;
   fl.l_whence = SEEK_CUR;
   fl.l_start = 0;
   fl.l_len = len;
--- ChangeLog~	Fri Oct 27 18:48:22 2000
+++ ChangeLog	Fri Oct 27 18:48:07 2000
@@ -1,0 +1,3 @@
+2000-10-27  Ben Collins  <bcollins@debian.org>
+
+	* sysdeps/generic/lockf.c: explicitly set l_type to F_RDLCK
+

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]