diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2012-09-20 02:49:25 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2012-09-20 02:49:25 +0000 |
commit | c071417ab75fafe695cda10425f1bcdc10389918 (patch) | |
tree | ae0ff57ee81231d9f0632d41e4fff6d7aec42b1a /sys/fs/nfsclient | |
parent | 02ad3abcdd157c2d458fbad597489b46824eea5b (diff) | |
download | FreeBSD-src-c071417ab75fafe695cda10425f1bcdc10389918.zip FreeBSD-src-c071417ab75fafe695cda10425f1bcdc10389918.tar.gz |
Modify the NFSv4 client so that it can handle owner
and owner_group strings that consist entirely of
digits, interpreting them as the uid/gid number.
This change was needed since new (>= 3.3) Linux
servers reply with these strings by default.
This change is mandated by the rfc3530bis draft.
Reported on freebsd-stable@ under the Subject
heading "Problem with Linux >= 3.3 as NFSv4 server"
by Norbert Aschendorff on Aug. 20, 2012.
Tested by: norbert.aschendorff at yahoo.de
Reviewed by: jhb
MFC after: 2 weeks
Diffstat (limited to 'sys/fs/nfsclient')
-rw-r--r-- | sys/fs/nfsclient/nfs_clcomsubs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/nfsclient/nfs_clcomsubs.c b/sys/fs/nfsclient/nfs_clcomsubs.c index c7fd69b..28d8ba1 100644 --- a/sys/fs/nfsclient/nfs_clcomsubs.c +++ b/sys/fs/nfsclient/nfs_clcomsubs.c @@ -126,11 +126,11 @@ nfscl_reqstart(struct nfsrv_descript *nd, int procnum, struct nfsmount *nmp, * First, fill in some of the fields of nd. */ if (NFSHASNFSV4(nmp)) - nd->nd_flag = ND_NFSV4; + nd->nd_flag = ND_NFSV4 | ND_NFSCL; else if (NFSHASNFSV3(nmp)) - nd->nd_flag = ND_NFSV3; + nd->nd_flag = ND_NFSV3 | ND_NFSCL; else - nd->nd_flag = ND_NFSV2; + nd->nd_flag = ND_NFSV2 | ND_NFSCL; nd->nd_procnum = procnum; nd->nd_repstat = 0; |