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 Use VOP va_vaflags attribute for ge...



details:   https://anonhg.NetBSD.org/src/rev/0a174072d3b0
branches:  trunk
changeset: 778074:0a174072d3b0
user:      njoly <njoly%NetBSD.org@localhost>
date:      Thu Mar 15 12:42:28 2012 +0000

description:
Use VOP va_vaflags attribute for genfs_can_chtimes(), not rumpfs node
one.

diffstat:

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

diffs (27 lines):

diff -r a5f9d6b9546f -r 0a174072d3b0 sys/rump/librump/rumpvfs/rumpfs.c
--- a/sys/rump/librump/rumpvfs/rumpfs.c Thu Mar 15 11:46:08 2012 +0000
+++ b/sys/rump/librump/rumpvfs/rumpfs.c Thu Mar 15 12:42:28 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpfs.c,v 1.107 2012/03/13 18:41:01 elad Exp $        */
+/*     $NetBSD: rumpfs.c,v 1.108 2012/03/15 12:42:28 njoly Exp $       */
 
 /*
  * Copyright (c) 2009, 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.107 2012/03/13 18:41:01 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpfs.c,v 1.108 2012/03/15 12:42:28 njoly Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -910,7 +910,7 @@
            CHANGED(va_mtime.tv_nsec, long) ||
            CHANGED(va_birthtime.tv_nsec, long)) {
                error = kauth_authorize_vnode(cred, KAUTH_VNODE_WRITE_TIMES, vp,
-                   NULL, genfs_can_chtimes(vp, attr->va_vaflags, attr->va_uid,
+                   NULL, genfs_can_chtimes(vp, vap->va_vaflags, attr->va_uid,
                    cred));
                if (error)
                        return error;



Home | Main Index | Thread Index | Old Index