Control: tags -1 patch

I've attached the patch.

(Unfortunately, I get an unrelated failure in the tests; bug 1010170.)

On 2022-04-25 14:26:29 +0200, Vincent Lefevre wrote:
> After wondering why Emacs was hanging on startup after a reinstallation
> of machines with Debian 11 at my lab, I looked at the strace output
> (strace -o str.out -f /usr/bin/emacs-gtk -Q) and could see:
[...]
> -- System Information:
> Debian Release: bookworm/sid
[...]

To clarify, I reported the bug from a Debian/unstable machine,
but the bug *also* occurs in Debian 11 (bullseye).

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Description: Fix search for init file (GNU Emacs 27.1).
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010152

Patch from https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42827#16

diff --git a/src/xrdb.c b/src/xrdb.c
index e3a1fcb15a..3d7f715c88 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -289,9 +289,9 @@ get_user_app (const char *class)
       /* Check in the home directory.  This is a bit of a hack; let's
 	 hope one's home directory doesn't contain ':' or '%'.  */
       char const *home = get_homedir ();
-      db = search_magic_path (home, class, "%L/%N");
+      db = search_magic_path (home, class, "/%L/%N");
       if (! db)
-	db = search_magic_path (home, class, "%N");
+	db = search_magic_path (home, class, "/%N");
     }
 
   return db;

Reply via email to