diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-06-06 05:32:36 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-06-06 05:32:36 +0000 |
commit | e35917bb9337200edd0d92044f4d4817e9feb891 (patch) | |
tree | b4d50d8cc677cc02d1ef5743320660be35543566 /source3/smbd | |
parent | 49d71c7e7b69662083d889966ca4600b5000f521 (diff) | |
download | samba-e35917bb9337200edd0d92044f4d4817e9feb891.tar.gz samba-e35917bb9337200edd0d92044f4d4817e9feb891.tar.bz2 samba-e35917bb9337200edd0d92044f4d4817e9feb891.zip |
make the allocation_size consistent between trans2 QFILEINFO and SMBgetattrE
(This used to be commit 59f1a5e6fd783b977f787dae4ba4bb8b65c41e43)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 7a0cc0287a..7f0ffd7577 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -4385,8 +4385,9 @@ int reply_getattrE(connection_struct *conn, char *inbuf,char *outbuf, int size, SIVAL(outbuf,smb_vwv6,0); SIVAL(outbuf,smb_vwv8,0); } else { + uint32 allocation_size = get_allocation_size(fsp, &sbuf); SIVAL(outbuf,smb_vwv6,(uint32)sbuf.st_size); - SIVAL(outbuf,smb_vwv8,SMB_ROUNDUP(sbuf.st_size,1024)); + SIVAL(outbuf,smb_vwv8,allocation_size); } SSVAL(outbuf,smb_vwv10, mode); |