CVSROOT:        /cvs/cluster
Module name:    cluster
Branch:         RHEL5
Changes by:     [EMAIL PROTECTED]       2008-01-17 09:40:12

Modified files:
        dlm/lib        : libdlm.c 

Log message:
        Zero namelen when doing an unlock. On 32/64 bit systems it can make a
        horrible mess otherwise.
        bz#409221 has the gory details

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/lib/libdlm.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.32.2.3&r2=1.32.2.4

--- cluster/dlm/lib/libdlm.c    2007/10/17 18:13:41     1.32.2.3
+++ cluster/dlm/lib/libdlm.c    2008/01/17 09:40:11     1.32.2.4
@@ -1034,6 +1034,7 @@
 
        set_version_v6(&req);
        req.cmd = DLM_USER_UNLOCK;
+       req.i.lock.namelen = 0;
        req.i.lock.lkid = lkid;
        req.i.lock.flags = flags;
        req.i.lock.lksb  = lksb;

Reply via email to