kbd-util: allow kmap as a valid suffix

debian is using kmap suffix in console-data and kbd accepts this too.

(cherry picked from commit 0827be05dd)
This commit is contained in:
Georg Müller
2026-10-15 17:39:05 +01:00
committed by Luca Boccassi
parent 14d9e0429e
commit ed8233ca6f
+1 -1
View File
@@ -58,7 +58,7 @@ static int keymap_recurse_dir_callback(
if (!IN_SET(de->d_type, DT_REG, DT_LNK))
return RECURSE_DIR_CONTINUE;
const char *e = endswith(de->d_name, ".map") ?: endswith(de->d_name, ".map.gz");
const char *e = ENDSWITH_SET(de->d_name, ".map", ".map.gz", ".kmap", ".kmap.gz");
if (!e)
return RECURSE_DIR_CONTINUE;