diff options
Diffstat (limited to 'trans')
-rw-r--r-- | trans/fakeroot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trans/fakeroot.c b/trans/fakeroot.c index 3dce22e8..b79a37d0 100644 --- a/trans/fakeroot.c +++ b/trans/fakeroot.c @@ -670,11 +670,11 @@ netfs_attempt_mkfile (struct iouser *user, struct node *dir, file_t newfile; error_t err = dir_mkfile (dir->nn->file, O_RDWR|O_EXEC, real_from_fake_mode (mode), &newfile); + pthread_mutex_unlock (&dir->lock); if (err == 0) err = new_node (newfile, MACH_PORT_NULL, 0, O_RDWR|O_EXEC, np); if (err == 0) pthread_mutex_unlock (&(*np)->lock); - pthread_mutex_unlock (&dir->lock); return err; } |