summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-03-20 19:29:06 +0000
committerJeremy Allison <jra@samba.org>2002-03-20 19:29:06 +0000
commit2eab97160b5934d256a34294db07eb324be17c43 (patch)
treeb3bc899cf2a79b7ee40b1b726365b03b6f7a841d /source3/smbd
parentb1062ece13632f974625275868e309fa53cab6a5 (diff)
downloadsamba-2eab97160b5934d256a34294db07eb324be17c43.tar.gz
samba-2eab97160b5934d256a34294db07eb324be17c43.tar.bz2
samba-2eab97160b5934d256a34294db07eb324be17c43.zip
HEAD only fix for truncate from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
This code needs replacing with the trans2.c from 2.2.x. Jeremy. (This used to be commit bc8d4b98807ece734db3e1c3a2baabf4b28e7b4f)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 6aee06cc00..185fe1c633 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2154,7 +2154,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn,
}
close_file(new_fsp,True);
} else {
- ret = vfs_allocate_file_space(fsp, size);
+ ret = vfs_allocate_file_space(fsp, allocation_size);
if (vfs_fstat(fsp,fd,&new_sbuf) != 0) {
DEBUG(3,("fstat of fnum %d failed (%s)\n",fsp->fnum, strerror(errno)));
ret = -1;