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:
parent
f557647525
commit
3d8e149668
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user