From f87e585c511d94bbf6413665e1d662902802cad7 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 7 Nov 1999 21:06:38 +0000 Subject: [PATCH] (to_chars): Remove trailing newline from warning. (dump_file): Ignore doors. --- src/create.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/create.c b/src/create.c index de09f9f..2413106 100644 --- a/src/create.c +++ b/src/create.c @@ -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; } -- 2.45.2