(write_directory_file): Use sys_truncate

This commit is contained in:
uid65697
2003-12-25 10:18:48 +00:00
parent f7ce5a4ec5
commit fc184a85e1

View 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);