Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Correct situation where vnode was left hanging arou...
details: https://anonhg.NetBSD.org/src/rev/31dfa16508c1
branches: trunk
changeset: 488148:31dfa16508c1
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Jun 19 18:53:55 2000 +0000
description:
Correct situation where vnode was left hanging around when trying to
mount a filesystem with securelevel 2. A second mount-attempt left
everything completely frozen.
Fix by Bill Sommerfeld.
diffstat:
sys/kern/vfs_syscalls.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 671e95cb9591 -r 31dfa16508c1 sys/kern/vfs_syscalls.c
--- a/sys/kern/vfs_syscalls.c Mon Jun 19 18:32:08 2000 +0000
+++ b/sys/kern/vfs_syscalls.c Mon Jun 19 18:53:55 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_syscalls.c,v 1.157 2000/06/15 22:32:44 fvdl Exp $ */
+/* $NetBSD: vfs_syscalls.c,v 1.158 2000/06/19 18:53:55 pooka Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -217,8 +217,10 @@
VOP_UNLOCK(vp, 0);
goto update;
} else {
- if (securelevel >= 2)
+ if (securelevel >= 2) {
+ vput(vp);
return (EPERM);
+ }
}
/*
* If the user is not root, ensure that they own the directory
Home |
Main Index |
Thread Index |
Old Index