1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Restore umask when device node creation fails.

Author: Florian Zumbiehl <florz@florz.de>
Acked-by: Dave Wysochanski <dwysocha@redhat.com>
This commit is contained in:
Dave Wysochanski 2009-09-03 21:51:26 +00:00
parent f557647525
commit 3d8e149668
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -360,6 +360,7 @@ static int _add_dev_node(const char *dev_name, uint32_t major, uint32_t minor,
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;
}