summaryrefslogtreecommitdiffstats
path: root/sys/fs/autofs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-08-24 17:03:52 +0000
committertrasz <trasz@FreeBSD.org>2014-08-24 17:03:52 +0000
commitbf5f21dde4e784fd1c07ddcdab78b4c1eff24b1b (patch)
tree4c9f4ba4469d820e7dd0a6aec5d365f42e5ae92e /sys/fs/autofs
parentb7ae83282f2a14f984959709a4455542ce5e7270 (diff)
downloadFreeBSD-src-bf5f21dde4e784fd1c07ddcdab78b4c1eff24b1b.zip
FreeBSD-src-bf5f21dde4e784fd1c07ddcdab78b4c1eff24b1b.tar.gz
Fix bug that, assuming a/ is a root of NFS filesystem mounted on autofs,
prevented "mv a/from a/to" from working, while "cd a && mv from to" was ok. PR: 192948 MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/fs/autofs')
-rw-r--r--sys/fs/autofs/autofs_vnops.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/fs/autofs/autofs_vnops.c b/sys/fs/autofs/autofs_vnops.c
index c631f57..e0a75fa 100644
--- a/sys/fs/autofs/autofs_vnops.c
+++ b/sys/fs/autofs/autofs_vnops.c
@@ -276,9 +276,6 @@ autofs_lookup(struct vop_lookup_args *ap)
}
}
- if (cnp->cn_nameiop == RENAME)
- return (EOPNOTSUPP);
-
AUTOFS_LOCK(amp);
error = autofs_node_find(anp, cnp->cn_nameptr, cnp->cn_namelen, &child);
if (error != 0) {
OpenPOWER on IntegriCloud