openbsd-ports/x11/openbox/patches/patch-obt_xml_c
fgsch 57a48e1b38 Allow to specify the full path for the menu.
Somewhat related and where this patch comes from:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644756
maintainer (benoit@) ok.
2012-05-29 15:52:08 +00:00

13 lines
492 B
Plaintext

$OpenBSD: patch-obt_xml_c,v 1.1 2012/05/29 15:52:08 fgsch Exp $
--- obt/xml.c.orig Tue May 29 01:49:56 2012
+++ obt/xml.c Tue May 29 01:51:19 2012
@@ -129,6 +129,8 @@ static gboolean load_file(ObtXmlInst *i,
if (!domain && !filename) /* given a full path to the file */
path = g_strdup(it->data);
+ else if (stat(filename, &s) == 0)
+ path = g_strdup(filename);
else
path = g_build_filename(it->data, domain, filename, NULL);