From 64493776c79e7c821cc64385515cf1e45ebcd765 Mon Sep 17 00:00:00 2001 From: tjr Date: Mon, 22 Dec 2003 12:33:31 +0000 Subject: Make oldsize in smbfs_getattr() 64 bits wide instead of 32 to avoid truncation when files are larger than 4GB. --- sys/fs/smbfs/smbfs_vnops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/fs/smbfs/smbfs_vnops.c') diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c index f2e0f1e..928a77a 100644 --- a/sys/fs/smbfs/smbfs_vnops.c +++ b/sys/fs/smbfs/smbfs_vnops.c @@ -272,7 +272,7 @@ smbfs_getattr(ap) struct vattr *va=ap->a_vap; struct smbfattr fattr; struct smb_cred scred; - u_int32_t oldsize; + u_quad_t oldsize; int error; SMBVDEBUG("%lx: '%s' %d\n", (long)vp, np->n_name, (vp->v_vflag & VV_ROOT) != 0); -- cgit v1.1