From 68e226a99e4bb06935a253fc6a79afc3fa43bcd0 Mon Sep 17 00:00:00 2001 From: arr Date: Thu, 21 Mar 2002 15:27:39 +0000 Subject: - Fix a logic error in checking the securelevel that was introduced in the previous commit. Pointy hats to: arr, rwatson --- sys/kern/vfs_syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/vfs_syscalls.c') diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 8247f8d..77eece4 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -308,7 +308,7 @@ vfs_mount(td, fstype, fspath, fsflags, fsdata) return error; } error = securelevel_gt(td->td_ucred, 0); - if (error == 0) { + if (error != 0) { vput(vp); return (EPERM); } -- cgit v1.1