summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/dir-rename.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libnetfs/dir-rename.c b/libnetfs/dir-rename.c
index 6950e78e..b23ffaa3 100644
--- a/libnetfs/dir-rename.c
+++ b/libnetfs/dir-rename.c
@@ -25,10 +25,10 @@ error_t
netfs_S_dir_rename (struct protid *fromdiruser, char *fromname,
struct protid *todiruser, char *toname)
{
- errort err;
+ error_t err;
if (!fromdiruser)
- return EOPRONSUPP;
+ return EOPNOTSUPP;
if (!todiruser)
return EXDEV;
@@ -38,8 +38,6 @@ netfs_S_dir_rename (struct protid *fromdiruser, char *fromname,
fromname, todiruser->po->np, toname);
if (!err)
mach_port_deallocate (mach_task_self (), todiruser->pi.port_right);
+ return err;
}
-
-
-