From: serassio <> Date: Sun, 26 Nov 2006 03:12:38 +0000 (+0000) Subject: Bug #1832: Error building squid-2.6.STABLE5 using --enable-truncate X-Git-Tag: SQUID_3_0_PRE6~186 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cf1733618e03bd5fb877de0bd5cb3f1617cfe951;p=thirdparty%2Fsquid.git Bug #1832: Error building squid-2.6.STABLE5 using --enable-truncate --- diff --git a/src/DiskIO/DiskThreads/DiskThreadsIOStrategy.cc b/src/DiskIO/DiskThreads/DiskThreadsIOStrategy.cc index f06585af3b..a0137c4fdf 100644 --- a/src/DiskIO/DiskThreads/DiskThreadsIOStrategy.cc +++ b/src/DiskIO/DiskThreads/DiskThreadsIOStrategy.cc @@ -1,6 +1,6 @@ /* - * $Id: DiskThreadsIOStrategy.cc,v 1.9 2006/09/03 21:05:20 hno Exp $ + * $Id: DiskThreadsIOStrategy.cc,v 1.10 2006/11/25 20:12:38 serassio Exp $ * * DEBUG: section 79 Squid-side Disk I/O functions. * AUTHOR: Robert Collins @@ -259,7 +259,7 @@ DiskThreadsIOStrategy::unlinkFile(char const *path) statCounter.syscalls.disk.unlinks++; #if USE_TRUNCATE - aioTruncate(path, NULL, NULL); + aioTruncate(path, 0, NULL, NULL); #else aioUnlink(path, NULL, NULL);