]> Dogcows Code - chaz/tar/blobdiff - src/delete.c
Moved system dependencies to system.c
[chaz/tar] / src / delete.c
index b79321ff319b08c3a2d306e4cda2ca3d8eb45189..5d5bd27a9946c6e782b35ad420b19db86bef344f 100644 (file)
@@ -383,13 +383,7 @@ delete_archive_members (void)
 
   if (! acting_as_filter && ! _isrmt (archive))
     {
-#if MSDOS
-      int status = write (archive, "", 0);
-#else
-      off_t pos = lseek (archive, (off_t) 0, SEEK_CUR);
-      int status = pos < 0 ? -1 : ftruncate (archive, pos);
-#endif
-      if (status != 0)
+      if (sys_truncate (archive))
        truncate_warn (archive_name_array[0]);
     }
 
This page took 0.021555 seconds and 4 git commands to generate.