From 5e0e9b99dc3fc0ecd49d929db0d57c784b66f481 Mon Sep 17 00:00:00 2001 From: svn2git Date: Fri, 1 Jul 1994 00:00:00 -0800 Subject: Release FreeBSD 1.1.5.1 This commit was manufactured to restore the state of the 1.1.5.1-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs. --- sys/kern/vfs_syscalls.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/kern/vfs_syscalls.c') diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 396bd6326f98..b218ab6dd380 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)vfs_syscalls.c 7.74 (Berkeley) 6/21/91 - * $Id: vfs_syscalls.c,v 1.10 1994/01/19 21:09:13 jtc Exp $ + * $Id: vfs_syscalls.c,v 1.17 1994/05/26 05:32:05 ache Exp $ */ #include "param.h" @@ -841,9 +841,10 @@ link(p, uap, retval) if (error = namei(ndp, p)) return (error); vp = ndp->ni_vp; - if (vp->v_type == VDIR && - (error = suser(p->p_ucred, &p->p_acflag))) + if (vp->v_type == VDIR) { + error = EPERM; goto out1; + } ndp->ni_nameiop = CREATE | LOCKPARENT; ndp->ni_dirp = (caddr_t)uap->linkname; if (error = namei(ndp, p)) -- cgit v1.3