]> Dogcows Code - chaz/tar/commitdiff
(flush_write): Warn when the name of the archive
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 7 Apr 2005 17:26:11 +0000 (17:26 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 7 Apr 2005 17:26:11 +0000 (17:26 +0000)
straddling volume boundary is longer than 100 characters. Earlier
behavior was to issue a fatal error.
(struct zip_magic): Reverted part of changes from 2005-04-04.
They make the maintenance too costly. Removing `unsigned'
qualifier from `magic' member should be enough.

src/buffer.c

index e4225fe1e72e0a2739c93a3af6016c8f1953cd85..ef57a050acd3adcfeede933018a00c80e0366d03 100644 (file)
@@ -160,9 +160,9 @@ struct zip_magic
 {
   enum compress_type type;
   size_t length;
-  char magic[sizeof "BZh" - 1];
-  char program[sizeof "compress"];
-  char option[sizeof "-Z"];
+  char *magic;
+  char *program;
+  char *option;
 };
 
 static struct zip_magic const magic[] = {
@@ -653,8 +653,8 @@ flush_write (void)
        record_start++;
 
       if (strlen (real_s_name) > NAME_FIELD_SIZE)
-       FATAL_ERROR ((0, 0,
-                     _("%s: file name too long to be stored in a GNU multivolume header"),
+       WARN ((0, 0,
+             _("%s: file name too long to be stored in a GNU multivolume header, truncated"),
                      quotearg_colon (real_s_name)));
 
       memset (record_start, 0, BLOCKSIZE);
This page took 0.024265 seconds and 4 git commands to generate.