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/569ec645175a
branches:  trunk
changeset: 339901:569ec645175a
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 5fa9d5c6bb1e -r 569ec645175a 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