will know that we are setting the d_type field in directories (and can zero it
for unsuspecting binaries)
SCCS-vsn: sys/nfs/nfs_vfsops.c 7.43
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)nfs_vfsops.c 7.42 (Berkeley) %G%
+ * @(#)nfs_vfsops.c 7.43 (Berkeley) %G%
error = EPERM;
goto bad;
}
error = EPERM;
goto bad;
}
- if ((nmp->nm_flag & (NFSMNT_RDIRALOOK | NFSMNT_LEASETERM)) &&
- (nmp->nm_flag & NFSMNT_NQNFS) == 0) {
- error = EPERM;
- goto bad;
+ if (nmp->nm_flag & (NFSMNT_RDIRALOOK | NFSMNT_LEASETERM)) {
+ if ((nmp->nm_flag & NFSMNT_NQNFS) == 0) {
+ error = EPERM;
+ goto bad;
+ }
+ /*
+ * We have to set mnt_maxsymlink to a non-zero value so
+ * that COMPAT_43 routines will know that we are setting
+ * the d_type field in directories (and can zero it for
+ * unsuspecting binaries).
+ */
+ mp->mnt_maxsymlinklen = 1;
}
nmp->nm_timeo = NFS_TIMEO;
nmp->nm_retry = NFS_RETRANS;
}
nmp->nm_timeo = NFS_TIMEO;
nmp->nm_retry = NFS_RETRANS;