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:
committed by
Luca Boccassi
parent
14d9e0429e
commit
ed8233ca6f
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user