From 2eab97160b5934d256a34294db07eb324be17c43 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 20 Mar 2002 19:29:06 +0000 Subject: HEAD only fix for truncate from Alexander Bokovoy . This code needs replacing with the trans2.c from 2.2.x. Jeremy. (This used to be commit bc8d4b98807ece734db3e1c3a2baabf4b28e7b4f) --- source3/smbd/trans2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit