Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpvfs Censor no-longer-relevant flags whi...



details:   https://anonhg.NetBSD.org/src/rev/91d33d4ce0d3
branches:  trunk
changeset: 760543:91d33d4ce0d3
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Jan 07 11:27:53 2011 +0000

description:
Censor no-longer-relevant flags which may be passed down from
somewhere (e.g. an older kernel).  We really can't do anything
about new flags or flags changing meaning, though.

diffstat:

 sys/rump/librump/rumpvfs/rump_vfs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b452e314277d -r 91d33d4ce0d3 sys/rump/librump/rumpvfs/rump_vfs.c
--- a/sys/rump/librump/rumpvfs/rump_vfs.c       Fri Jan 07 11:25:43 2011 +0000
+++ b/sys/rump/librump/rumpvfs/rump_vfs.c       Fri Jan 07 11:27:53 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_vfs.c,v 1.64 2011/01/06 10:20:57 pooka Exp $      */
+/*     $NetBSD: rump_vfs.c,v 1.65 2011/01/07 11:27:53 pooka Exp $      */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.64 2011/01/06 10:20:57 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.65 2011/01/07 11:27:53 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/buf.h>
@@ -194,7 +194,7 @@
        cnp->cn_nameptr = rcn->rcn_path;
 
        cnp->cn_nameiop = nameiop;
-       cnp->cn_flags = flags;
+       cnp->cn_flags = flags & (MODMASK | PARAMASK);
 
        cnp->cn_namelen = namelen;
        cnp->cn_hash = namei_hash(name, &cp);



Home | Main Index | Thread Index | Old Index