Skip to contentSkip to conversation

LVM2 libdm/libdm-common.c ./WHATS_NEW_DM

PATCH [email protected] 1 participant 1 message Sep 3, 2009

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2009-09-03 21:51:26

Modified files:
libdm : libdm-common.c
. : WHATS_NEW_DM

Log message:
Restore umask when device node creation fails.

Author: Florian Zumbiehl <[email protected]>

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-common.c.diff?cvsroot=lvm2&r1=1.76&r2=1.77
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.294&r2=1.295

libdm/libdm-common.c +1 -0
@@ -360,6 +360,7 @@
 
 	old_mask = umask(0);
 	if (mknod(path, S_IFBLK | mode, dev) < 0) {
+		umask(old_mask);
 		log_error("Unable to make device node for '%s'", dev_name);
 		return 0;
 	}
WHATS_NEW_DM +1 -0
@@ -1,5 +1,6 @@
 Version 1.02.37 -
 =================================
+  Restore umask when device node creation fails.
   Fix mirror table CTR code to handle 'block_on_error' and 'cluster' features
 
 Version 1.02.36 - 6th August 2009