Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/genfs Allow chown if caller is in the new group.
details: https://anonhg.NetBSD.org/src/rev/67d85c06493e
branches: trunk
changeset: 749172:67d85c06493e
user: roy <roy%NetBSD.org@localhost>
date: Fri Nov 20 13:42:43 2009 +0000
description:
Allow chown if caller is in the new group.
diffstat:
sys/miscfs/genfs/genfs_vnops.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r c76761fc95bb -r 67d85c06493e sys/miscfs/genfs/genfs_vnops.c
--- a/sys/miscfs/genfs/genfs_vnops.c Fri Nov 20 13:19:46 2009 +0000
+++ b/sys/miscfs/genfs/genfs_vnops.c Fri Nov 20 13:42:43 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_vnops.c,v 1.173 2009/11/20 13:19:46 pooka Exp $ */
+/* $NetBSD: genfs_vnops.c,v 1.174 2009/11/20 13:42:43 roy Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.173 2009/11/20 13:19:46 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.174 2009/11/20 13:42:43 roy Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -695,8 +695,8 @@
ismember = 0;
error = kauth_cred_ismember_gid(cred, new_gid,
&ismember);
- if (error || !ismember)
- return (EPERM);
+ if (!error && ismember)
+ return (0);
}
return (EPERM);
Home |
Main Index |
Thread Index |
Old Index