Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/v7fs Pass operations flags to genfs_can_chtimes(), no...
details: https://anonhg.NetBSD.org/src/rev/d43ca469daf7
branches: trunk
changeset: 778348:d43ca469daf7
user: njoly <njoly%NetBSD.org@localhost>
date: Thu Mar 22 22:16:21 2012 +0000
description:
Pass operations flags to genfs_can_chtimes(), not file ones.
diffstat:
sys/fs/v7fs/v7fs_vnops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e9bbf57c9025 -r d43ca469daf7 sys/fs/v7fs/v7fs_vnops.c
--- a/sys/fs/v7fs/v7fs_vnops.c Thu Mar 22 21:47:20 2012 +0000
+++ b/sys/fs/v7fs/v7fs_vnops.c Thu Mar 22 22:16:21 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: v7fs_vnops.c,v 1.8 2012/03/13 18:40:51 elad Exp $ */
+/* $NetBSD: v7fs_vnops.c,v 1.9 2012/03/22 22:16:21 njoly Exp $ */
/*-
* Copyright (c) 2004, 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: v7fs_vnops.c,v 1.8 2012/03/13 18:40:51 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: v7fs_vnops.c,v 1.9 2012/03/22 22:16:21 njoly Exp $");
#if defined _KERNEL_OPT
#include "opt_v7fs.h"
#endif
@@ -536,7 +536,7 @@
(vap->va_mtime.tv_sec != VNOVAL) ||
(vap->va_ctime.tv_sec != VNOVAL)) {
error = kauth_authorize_vnode(cred, KAUTH_VNODE_WRITE_TIMES, vp,
- NULL, genfs_can_chtimes(vp, vap->va_flags, inode->uid,
+ NULL, genfs_can_chtimes(vp, vap->va_vaflags, inode->uid,
cred));
if (error)
return error;
Home |
Main Index |
Thread Index |
Old Index