This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[patch] lockf() fix
- To: libc-alpha at sources dot redhat dot com
- Subject: [patch] lockf() fix
- From: Ben Collins <bcollins at debian dot org>
- Date: Fri, 27 Oct 2000 18:51:18 -0400
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
+