summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-02-12 21:46:17 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-02-12 21:46:17 +0000
commitdbedbd2e20b3f8c1b143663e79988f3806a6bc07 (patch)
tree09e7db0fae1379b8d2e0dc03f692bfe507a186c8 /libnetfs
parentcef0541d7764ad8bda3d4c8350d89feab8cbf447 (diff)
Formerly fsys-getroot.c.~3~
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/fsys-getroot.c5
1 files changed, 4 insertions, 1 deletions
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)