View | Details | Raw Unified | Return to bug 271174
Collapse All | Expand All

(-)sys/fs/nfsserver/nfs_nfsdport.c (-4 / +3 lines)
Lines 2251-2262 again: Link Here
2251
			if (nd->nd_flag & ND_NFSV3) {
2251
			if (nd->nd_flag & ND_NFSV3) {
2252
				NFSM_BUILD(tl, u_int32_t *, 3 * NFSX_UNSIGNED);
2252
				NFSM_BUILD(tl, u_int32_t *, 3 * NFSX_UNSIGNED);
2253
				*tl++ = newnfs_true;
2253
				*tl++ = newnfs_true;
2254
				*tl++ = 0;
2254
				txdr_hyper(dp->d_fileno, tl);
2255
			} else {
2255
			} else {
2256
				NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED);
2256
				NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED);
2257
				*tl++ = newnfs_true;
2257
				*tl++ = newnfs_true;
2258
				*tl = txdr_unsigned(dp->d_fileno);
2258
			}
2259
			}
2259
			*tl = txdr_unsigned(dp->d_fileno);
2260
			(void) nfsm_strtom(nd, dp->d_name, nlen);
2260
			(void) nfsm_strtom(nd, dp->d_name, nlen);
2261
			if (nd->nd_flag & ND_NFSV3) {
2261
			if (nd->nd_flag & ND_NFSV3) {
2262
				NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED);
2262
				NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED);
Lines 2753-2760 again: Link Here
2753
			if (nd->nd_flag & ND_NFSV3) {
2753
			if (nd->nd_flag & ND_NFSV3) {
2754
				NFSM_BUILD(tl, u_int32_t *, 3 * NFSX_UNSIGNED);
2754
				NFSM_BUILD(tl, u_int32_t *, 3 * NFSX_UNSIGNED);
2755
				*tl++ = newnfs_true;
2755
				*tl++ = newnfs_true;
2756
				*tl++ = 0;
2756
				txdr_hyper(dp->d_fileno, tl);
2757
				*tl = txdr_unsigned(dp->d_fileno);
2758
				dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2757
				dirlen += nfsm_strtom(nd, dp->d_name, nlen);
2759
				NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED);
2758
				NFSM_BUILD(tl, u_int32_t *, 2 * NFSX_UNSIGNED);
2760
				txdr_hyper(*cookiep, tl);
2759
				txdr_hyper(*cookiep, tl);

Return to bug 271174