]> Dogcows Code - chaz/tar/commitdiff
(write_directory_file): Use sys_truncate
authoruid65697 <uid65697>
Thu, 25 Dec 2003 10:18:48 +0000 (10:18 +0000)
committeruid65697 <uid65697>
Thu, 25 Dec 2003 10:18:48 +0000 (10:18 +0000)
src/incremen.c

index b33140d803c8ffb8c0a346a49dbae6f93054854c..5feef76667754fa99736a546e8d32649482e03ac 100644 (file)
@@ -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);
This page took 0.033167 seconds and 4 git commands to generate.