From b73662fea216d515310c4f7188d0991932f6b5a7 Mon Sep 17 00:00:00 2001 From: jtc Date: Wed, 7 Feb 1996 17:01:25 +0000 Subject: [PATCH] Revert to sane symlink semantics. This is something we should have done long ago. Fixes many PRs. --- sys/ufs/ufs/ufs_vnops.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 9e549d968ae1..7a3f9b24c9b6 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -1,4 +1,4 @@ -/* $NetBSD: ufs_vnops.c,v 1.12 1996/02/01 00:09:07 jtc Exp $ */ +/* $NetBSD: ufs_vnops.c,v 1.13 1996/02/07 17:01:25 jtc Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -1947,10 +1947,7 @@ ufs_makeinode(mode, dvp, vpp, cnp) } ip = VTOI(tvp); ip->i_gid = pdir->i_gid; - if ((mode & IFMT) == IFLNK) - ip->i_uid = pdir->i_uid; - else - ip->i_uid = cnp->cn_cred->cr_uid; + ip->i_uid = cnp->cn_cred->cr_uid; #ifdef QUOTA if ((error = getinoquota(ip)) || (error = chkiq(ip, 1, cnp->cn_cred, 0))) {