diff options
author | Jean-Pierre André <jpandre@users.sourceforge.net> | 2012-08-22 10:00:22 +0200 |
---|---|---|
committer | Jean-Pierre André <jpandre@users.sourceforge.net> | 2012-08-22 10:00:22 +0200 |
commit | defb1f978817d15e052fed06bfc376503e1d0011 (patch) | |
tree | f78724329a172da53bbe741f50475ca3834bb19f | |
parent | 1f07ae9b6030a14ff3426274b272f7142ce41ead (diff) | |
download | illumos-fusefs-defb1f978817d15e052fed06bfc376503e1d0011.tar.gz |
Fixed the error returned when renaming a directory to a non-directory
-rw-r--r-- | kernel/fuse_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fuse_vnops.c b/kernel/fuse_vnops.c index da838d7..8275436 100644 --- a/kernel/fuse_vnops.c +++ b/kernel/fuse_vnops.c @@ -2853,7 +2853,7 @@ fuse_rename(vnode_t *sdvp, char *oldname, vnode_t *tdvp, char *newname, if (tvp) { if ((tvp->v_type == VDIR && svp->v_type != VDIR) || (tvp->v_type != VDIR && svp->v_type == VDIR)) { - err = ENOTDIR; + err = (tvp->v_type == VDIR ? EISDIR : ENOTDIR); goto errout; } } |