1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

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 commit is contained in:
Jeremy Allison -
parent 520c8626dc
commit bc8d4b9880

View File

@ -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;