File kbd-ignore-working-directory-1.patch of Package kbd.38483

From a770f39f79e6a5fdf8f352d8b26d6a50c6b137ff Mon Sep 17 00:00:00 2001
From: Alexey Gladkov <gladkov.alexey@gmail.com>
Date: Wed, 9 Aug 2023 13:59:57 +0200
Subject: [PATCH 1/3] loadkeys: Don't look for keymap in the current directory

Now loadkeys first tries to look for a keymap in the current directory.
This behavior is not intuitive and leads to problems. It appears that
loadskeys triggers all inodes in the current cwd. This might lead to
deadlocks during boot, because the system might not be ready to trigger
an autofs this early.

To solve this I exclude the current directory from the keymaps search
paths.

We still have ways to specify a different directory to search for
keymaps than the one specified on build time. The user can set the
LOADKEYS_KEYMAP_PATH environment variable to specify a different search
path.

Link: https://github.com/legionus/kbd/issues/101
Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
---
 src/loadkeys.c | 1 -
 1 file changed, 1 deletion(-)

Index: kbd-2.4.0/src/loadkeys.c
===================================================================
--- kbd-2.4.0.orig/src/loadkeys.c
+++ kbd-2.4.0/src/loadkeys.c
@@ -26,7 +26,6 @@
 #include "keymap.h"
 
 static const char *const dirpath1[] = {
-	"",
 	DATADIR "/" XKBKEYMAPDIR "/",
 	DATADIR "/" LEGACYKEYMAPDIR "/**",
 	DATADIR "/" KEYMAPDIR "/**",
openSUSE Build Service is sponsored by