From 7cb570d0ae25a56954f5356bf2f7dea9e82691bc Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Sun, 24 Aug 2014 17:03:52 +0000 Subject: [PATCH] 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 --- sys/fs/autofs/autofs_vnops.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/fs/autofs/autofs_vnops.c b/sys/fs/autofs/autofs_vnops.c index c631f57b2df..e0a75fa62ad 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) {