Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/lvm2/dist/libdm/ioctl Use DM_DEVICE_CONTROL_MO...
details: https://anonhg.NetBSD.org/src/rev/793e2bc54be8
branches: trunk
changeset: 760728:793e2bc54be8
user: haad <haad%NetBSD.org@localhost>
date: Wed Jan 12 08:16:23 2011 +0000
description:
Use DM_DEVICE_CONTROL_MODE, because mapper/control device should have 660
and not 640 permissions.
diffstat:
external/gpl2/lvm2/dist/libdm/ioctl/libdm-nbsd-iface.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 10019086b2ee -r 793e2bc54be8 external/gpl2/lvm2/dist/libdm/ioctl/libdm-nbsd-iface.c
--- a/external/gpl2/lvm2/dist/libdm/ioctl/libdm-nbsd-iface.c Wed Jan 12 07:38:43 2011 +0000
+++ b/external/gpl2/lvm2/dist/libdm/ioctl/libdm-nbsd-iface.c Wed Jan 12 08:16:23 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: libdm-nbsd-iface.c,v 1.9 2010/12/26 14:48:34 christos Exp $ */
+/* $NetBSD: libdm-nbsd-iface.c,v 1.10 2011/01/12 08:16:23 haad Exp $ */
/*
* Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
@@ -163,7 +163,7 @@
log_verbose("Creating device %s (%u, %u)", control, major, minor);
old_umask = umask(0);
- if (mknod(control, S_IFCHR | DM_DEVICE_MODE,
+ if (mknod(control, S_IFCHR | DM_CONTROL_DEVICE_MODE,
MKDEV(major, minor)) < 0) {
umask(old_umask);
log_sys_error("mknod", control);
Home |
Main Index |
Thread Index |
Old Index