diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-12-18 18:48:03 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-12-18 18:48:03 +0000 |
commit | c500eb7208e61eaf0e89307e558e84533a357a3a (patch) | |
tree | d3352da94c56a7c223f21724a7c0ba27191a918c /libnetfs | |
parent | 4d54f71e1074c5778a58285b00419bea58fa8926 (diff) |
Formerly dir-mkfile.c.~2~
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/dir-mkfile.c | 6 |
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 |