From d99adf96e5773adcb923f5925b966f959f8059c2 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Tue, 11 Apr 1995 18:32:17 +0000 Subject: [PATCH] Fix link sys call Submitted by: pritc003@maroon.tc.umn.edu --- sys/fs/msdosfs/msdosfs_vnops.c | 6 ++++-- sys/msdosfs/msdosfs_vnops.c | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/sys/fs/msdosfs/msdosfs_vnops.c b/sys/fs/msdosfs/msdosfs_vnops.c index 6f90d85863bc..a1e239578603 100644 --- a/sys/fs/msdosfs/msdosfs_vnops.c +++ b/sys/fs/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_vnops.c,v 1.12 1995/01/09 16:05:00 davidg Exp $ */ +/* $Id: msdosfs_vnops.c,v 1.13 1995/03/19 14:28:57 davidg Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.20 1994/08/21 18:44:13 ws Exp $ */ /*- @@ -899,7 +899,9 @@ msdosfs_link(ap) struct componentname *a_cnp; } */ *ap; { - return VOP_ABORTOP(ap->a_vp, ap->a_cnp); + VOP_ABORTOP(ap->a_vp, ap->a_cnp); + vput(ap->a_vp); + return EOPNOTSUPP; } /* diff --git a/sys/msdosfs/msdosfs_vnops.c b/sys/msdosfs/msdosfs_vnops.c index 6f90d85863bc..a1e239578603 100644 --- a/sys/msdosfs/msdosfs_vnops.c +++ b/sys/msdosfs/msdosfs_vnops.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_vnops.c,v 1.12 1995/01/09 16:05:00 davidg Exp $ */ +/* $Id: msdosfs_vnops.c,v 1.13 1995/03/19 14:28:57 davidg Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.20 1994/08/21 18:44:13 ws Exp $ */ /*- @@ -899,7 +899,9 @@ msdosfs_link(ap) struct componentname *a_cnp; } */ *ap; { - return VOP_ABORTOP(ap->a_vp, ap->a_cnp); + VOP_ABORTOP(ap->a_vp, ap->a_cnp); + vput(ap->a_vp); + return EOPNOTSUPP; } /*