Make oldsize in smbfs_getattr() 64 bits wide instead of 32 to avoid

truncation when files are larger than 4GB.
This commit is contained in:
tjr 2003-12-22 12:33:31 +00:00
parent 3dc5c3edfe
commit 2e890675b4

View File

@ -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);