diff options
author | tjr <tjr@FreeBSD.org> | 2003-12-22 12:33:31 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-12-22 12:33:31 +0000 |
commit | 64493776c79e7c821cc64385515cf1e45ebcd765 (patch) | |
tree | 6d18eadcf86db1ee314d41dee550dfd7e10ce87d /sys/fs | |
parent | e13986b25f40033dd04103dcda97fd092308c333 (diff) | |
download | FreeBSD-src-64493776c79e7c821cc64385515cf1e45ebcd765.zip FreeBSD-src-64493776c79e7c821cc64385515cf1e45ebcd765.tar.gz |
Make oldsize in smbfs_getattr() 64 bits wide instead of 32 to avoid
truncation when files are larger than 4GB.
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/smbfs/smbfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |