1
by Nico Golde <nion@debian.org>, slightly modified version
2
from Eugenio Paolantonio <me@medesimo.eu>
3
Do not build filename if a working full path is given.
5
Index: openbox-3.5.0/obt/xml.c
6
===================================================================
7
--- openbox-3.5.0.orig/obt/xml.c 2011-10-30 14:13:07.000000000 +0100
8
+++ openbox-3.5.0/obt/xml.c 2011-10-30 14:13:10.000000000 +0100
13
- if (!domain && !filename) /* given a full path to the file */
14
+ if (!domain && !filename){ /* given a full path to the file */
15
path = g_strdup(it->data);
17
+ } else if(filename && filename[0] == '/' && stat(filename, &s) >= 0) {
18
+ path = g_strdup(filename);
20
path = g_build_filename(it->data, domain, filename, NULL);
23
if (stat(path, &s) >= 0) {
24
/* XML_PARSE_BLANKS is needed apparently, or the tree can end up