From 1b9e3ffd2e4e1e18c6056c572547e1803923487e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 25 Aug 2025 12:05:01 +0200 Subject: [PATCH] lib/color-names: fix stupid bugs - sort "white" -> "yellow" - fix typo "lightgray," Fixes: https://github.com/util-linux/util-linux/issues/2863 Signed-off-by: Karel Zak --- lib/color-names.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/color-names.c b/lib/color-names.c index f7b194609..88c4ef957 100644 --- a/lib/color-names.c +++ b/lib/color-names.c @@ -43,7 +43,7 @@ const char *color_sequence_from_colorname(const char *str) { "halfbright", UL_COLOR_HALFBRIGHT }, { "lightblue", UL_COLOR_BOLD_BLUE }, { "lightcyan", UL_COLOR_BOLD_CYAN }, - { "lightgray,", UL_COLOR_GRAY }, + { "lightgray", UL_COLOR_GRAY }, { "lightgreen", UL_COLOR_BOLD_GREEN }, { "lightmagenta", UL_COLOR_BOLD_MAGENTA }, { "lightred", UL_COLOR_BOLD_RED }, @@ -51,8 +51,8 @@ const char *color_sequence_from_colorname(const char *str) { "red", UL_COLOR_RED }, { "reset", UL_COLOR_RESET, }, { "reverse", UL_COLOR_REVERSE }, - { "yellow", UL_COLOR_BOLD_YELLOW }, - { "white", UL_COLOR_WHITE } + { "white", UL_COLOR_WHITE }, + { "yellow", UL_COLOR_BOLD_YELLOW } }; struct ul_color_name key = { .name = str }, *res; -- 2.47.3