From: uid65697 Date: Thu, 25 Dec 2003 10:18:48 +0000 (+0000) Subject: (write_directory_file): Use sys_truncate X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=fc184a85e1cc0a75f8f034a9940e090555bc95bd;p=chaz%2Ftar (write_directory_file): Use sys_truncate --- diff --git a/src/incremen.c b/src/incremen.c index b33140d..5feef76 100644 --- a/src/incremen.c +++ b/src/incremen.c @@ -491,7 +491,7 @@ write_directory_file (void) if (fseek (fp, 0L, SEEK_SET) != 0) seek_error (listed_incremental_option); - if (ftruncate (fileno (fp), (off_t) 0) != 0) + if (sys_truncate (fileno (fp)) != 0) truncate_error (listed_incremental_option); fprintf (fp, "%lu\n", (unsigned long) start_time);