Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/genfs Disallow chown for files the caller does no...
details: https://anonhg.NetBSD.org/src/rev/c76761fc95bb
branches: trunk
changeset: 749171:c76761fc95bb
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Nov 20 13:19:46 2009 +0000
description:
Disallow chown for files the caller does not own.
diffstat:
sys/miscfs/genfs/genfs_vnops.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2b9043f4ed46 -r c76761fc95bb sys/miscfs/genfs/genfs_vnops.c
--- a/sys/miscfs/genfs/genfs_vnops.c Fri Nov 20 12:24:17 2009 +0000
+++ b/sys/miscfs/genfs/genfs_vnops.c Fri Nov 20 13:19:46 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_vnops.c,v 1.172 2009/06/23 19:36:38 elad Exp $ */
+/* $NetBSD: genfs_vnops.c,v 1.173 2009/11/20 13:19:46 pooka 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.172 2009/06/23 19:36:38 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.173 2009/11/20 13:19:46 pooka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -699,7 +699,7 @@
return (EPERM);
}
- return (0);
+ return (EPERM);
}
/*
Home |
Main Index |
Thread Index |
Old Index