]> Dogcows Code - chaz/tar/commitdiff
(to_chars): Remove trailing newline from warning.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Nov 1999 21:06:38 +0000 (21:06 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 7 Nov 1999 21:06:38 +0000 (21:06 +0000)
(dump_file): Ignore doors.

src/create.c

index de09f9f558c13c93fc6da394048c8e959a6eb5da..241310699ab0c37b091e8ca6907f28bdf0667d3d 100644 (file)
@@ -152,7 +152,7 @@ to_chars (int negative, uintmax_t value, size_t valsize,
       if (! warned_once)
        {
          warned_once = 1;
-         WARN ((0, 0, _("Generating negative octal headers\n")));
+         WARN ((0, 0, _("Generating negative octal headers")));
        }
       where[size - 1] = '\0';
       to_octal (value & MAX_VAL_WITH_DIGITS (valsize * CHAR_BIT, 1),
@@ -1555,6 +1555,13 @@ dump_file (char *p, int top_level, dev_t parent_device)
       else if (S_ISFIFO (current_stat.st_mode)
               || S_ISSOCK (current_stat.st_mode))
        type = FIFOTYPE;
+#ifdef S_ISDOOR
+      else if (S_ISDOOR (current_stat.st_mode))
+       {
+         WARN ((0, 0, _("%s: door ignored"), p));
+         return;
+       }
+#endif
       else
        goto unknown;
     }
This page took 0.025138 seconds and 4 git commands to generate.