From dbedbd2e20b3f8c1b143663e79988f3806a6bc07 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 12 Feb 1996 21:46:17 +0000 Subject: Formerly fsys-getroot.c.~3~ --- libnetfs/fsys-getroot.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libnetfs') diff --git a/libnetfs/fsys-getroot.c b/libnetfs/fsys-getroot.c index ef870857..cc551928 100644 --- a/libnetfs/fsys-getroot.c +++ b/libnetfs/fsys-getroot.c @@ -87,7 +87,10 @@ netfs_S_fsys_getroot (mach_port_t cntl, if ((type == S_IFSOCK || type == S_IFBLK || type == S_IFCHR || type == S_IFIFO) && (flags & (O_READ|O_WRITE|O_EXEC))) - return EOPNOTSUPP; + { + mutex_unlock (&netfs_root_node->lock); + return EOPNOTSUPP; + } err = netfs_check_open_permissions (cred, netfs_root_node, flags, 0); if (err) -- cgit v1.2.3