aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftpfs/netfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ftpfs/netfs.c b/ftpfs/netfs.c
index 2fdf8eec..6ea4f70e 100644
--- a/ftpfs/netfs.c
+++ b/ftpfs/netfs.c
@@ -392,6 +392,8 @@ error_t netfs_attempt_link (struct iouser *user, struct node *dir,
error_t netfs_attempt_mkfile (struct iouser *user, struct node *dir,
mode_t mode, struct node **node)
{
+ *node = 0;
+ mutex_unlock (&dir->lock);
return EROFS;
}