From mboxrd@z Thu Jan 1 00:00:00 1970 From: teigland@sourceware.org Date: 17 Oct 2007 18:13:41 -0000 Subject: [Cluster-devel] cluster/dlm/lib libdlm.c Message-ID: <20071017181341.1886.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: cluster Branch: RHEL5 Changes by: teigland at sourceware.org 2007-10-17 18:13:41 Modified files: dlm/lib : libdlm.c Log message: Honour the mode parameter to dlm_create_lockspace() even if the device node was created by udev. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/lib/libdlm.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.32.2.2&r2=1.32.2.3 --- cluster/dlm/lib/libdlm.c 2007/06/05 16:35:00 1.32.2.2 +++ cluster/dlm/lib/libdlm.c 2007/10/17 18:13:41 1.32.2.3 @@ -1371,6 +1371,8 @@ errno = saved_errno; return NULL; } + if (mode) + fchmod(newls->fd, mode); newls->tid = 0; fcntl(newls->fd, F_SETFD, 1); return (dlm_lshandle_t)newls;