[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/dlm/lib libdlm.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	pcaulfield sourceware org	2007-07-05 08:24:05

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&r1=1.36&r2=1.37

--- cluster/dlm/lib/libdlm.c	2007/05/31 13:46:35	1.36
+++ cluster/dlm/lib/libdlm.c	2007/07/05 08:24:05	1.37
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]