From e35917bb9337200edd0d92044f4d4817e9feb891 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 6 Jun 2003 05:32:36 +0000 Subject: [PATCH] make the allocation_size consistent between trans2 QFILEINFO and SMBgetattrE (This used to be commit 59f1a5e6fd783b977f787dae4ba4bb8b65c41e43) --- source3/smbd/reply.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 7a0cc0287a1..7f0ffd7577c 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); -- 2.34.1