Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev require write access to delete a wedge



details:   https://anonhg.NetBSD.org/src/rev/9065a2c517da
branches:  trunk
changeset: 810043:9065a2c517da
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Aug 16 17:28:28 2015 +0000

description:
require write access to delete a wedge

diffstat:

 sys/dev/dksubr.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r da0e4a149b6c -r 9065a2c517da sys/dev/dksubr.c
--- a/sys/dev/dksubr.c  Sun Aug 16 17:26:16 2015 +0000
+++ b/sys/dev/dksubr.c  Sun Aug 16 17:28:28 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dksubr.c,v 1.69 2015/08/16 17:26:16 mlelstv Exp $ */
+/* $NetBSD: dksubr.c,v 1.70 2015/08/16 17:28:28 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.69 2015/08/16 17:26:16 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.70 2015/08/16 17:28:28 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -360,6 +360,7 @@
        case DIOCKLABEL:
        case DIOCWLABEL:
        case DIOCAWEDGE:
+       case DIOCDWEDGE:
        case DIOCSSTRATEGY:
                if ((flag & FWRITE) == 0)
                        return EBADF;



Home | Main Index | Thread Index | Old Index