summaryrefslogtreecommitdiff
path: root/libnetfs/dir-mkfile.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-12-18 18:48:03 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-12-18 18:48:03 +0000
commitc500eb7208e61eaf0e89307e558e84533a357a3a (patch)
treed3352da94c56a7c223f21724a7c0ba27191a918c /libnetfs/dir-mkfile.c
parent4d54f71e1074c5778a58285b00419bea58fa8926 (diff)
Formerly dir-mkfile.c.~2~
Diffstat (limited to 'libnetfs/dir-mkfile.c')
-rw-r--r--libnetfs/dir-mkfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libnetfs/dir-mkfile.c b/libnetfs/dir-mkfile.c
index b64255f7..ef9b6395 100644
--- a/libnetfs/dir-mkfile.c
+++ b/libnetfs/dir-mkfile.c
@@ -19,6 +19,7 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
#include "netfs.h"
+#include "misc.h"
#include "fs_S.h"
error_t
@@ -30,8 +31,7 @@ netfs_S_dir_mkfile (struct protid *diruser, int flags, mode_t mode,
struct protid *newpi;
mutex_lock (&diruser->po->np->lock);
- err = netfs_attempt_mkfile (diruser->credential, diruser->po->np,
- flags, mode &np);
+ err = netfs_attempt_mkfile (diruser->credential, diruser->po->np, mode, &np);
if (!err)
{
@@ -43,7 +43,7 @@ netfs_S_dir_mkfile (struct protid *diruser, int flags, mode_t mode,
*newfile = ports_get_right (newpi);
*newfiletype = MACH_MSG_TYPE_COPY_SEND;
ports_port_deref (newpi);
- mutex_unlock (&np->lock);
+ netfs_nput (np);
return 0;
}
else