From b4834e5a4386363acca86fdd6c118c0389256933 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 15 Dec 1995 17:01:37 +0000 Subject: Formerly dir-rename.c.~2~ --- libnetfs/dir-rename.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libnetfs') diff --git a/libnetfs/dir-rename.c b/libnetfs/dir-rename.c index b804393c..6950e78e 100644 --- a/libnetfs/dir-rename.c +++ b/libnetfs/dir-rename.c @@ -34,8 +34,10 @@ netfs_S_dir_rename (struct protid *fromdiruser, char *fromname, return EXDEV; /* Note that nothing is locked here */ - return netfs_attempt_rename (fromdiruser->credential, fromdiruser->po->np, - fromname, todiruser->po->np, toname); + err = netfs_attempt_rename (fromdiruser->credential, fromdiruser->po->np, + fromname, todiruser->po->np, toname); + if (!err) + mach_port_deallocate (mach_task_self (), todiruser->pi.port_right); } -- cgit v1.2.3