svn commit: r197525 - head/sys/nfsserver
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sat Sep 26 18:23:16 UTC 2009
Author: pjd
Date: Sat Sep 26 18:23:16 2009
New Revision: 197525
URL: http://svn.freebsd.org/changeset/base/197525
Log:
Ensure that tv_sec is between INT32_MIN and INT32_MAX, so ZFS won't object.
This completes the fix from r185586.
PR: kern/139059
Reported by: Daniel Braniss <danny at cs.huji.ac.il>
Submitted by: Jaakko Heinonen <jh at saunalahti.fi>
Tested by: Daniel Braniss <danny at cs.huji.ac.il>
MFC after: 3 days
Modified:
head/sys/nfsserver/nfs_serv.c
Modified: head/sys/nfsserver/nfs_serv.c
==============================================================================
--- head/sys/nfsserver/nfs_serv.c Sat Sep 26 18:20:40 2009 (r197524)
+++ head/sys/nfsserver/nfs_serv.c Sat Sep 26 18:23:16 2009 (r197525)
@@ -1332,7 +1332,7 @@ nfsrv_create(struct nfsrv_descript *nfsd
tl = nfsm_dissect_nonblock(u_int32_t *,
NFSX_V3CREATEVERF);
/* Unique bytes, endianness is not important. */
- cverf.tv_sec = tl[0];
+ cverf.tv_sec = (int32_t)tl[0];
cverf.tv_nsec = tl[1];
exclusive_flag = 1;
break;
More information about the svn-src-head
mailing list