summaryrefslogtreecommitdiff
path: root/backends/markup-tree.c
diff options
context:
space:
mode:
authorMark McLoughlin <mark@skynet.ie>2004-07-02 07:55:20 +0000
committerMark McLoughlin <markmc@src.gnome.org>2004-07-02 07:55:20 +0000
commitece2f42e7ce342b793aca86a2d8c975e72fbb4d5 (patch)
treed9e59862ad272ed1925092762faf78fa2c67d9d8 /backends/markup-tree.c
parent9dd2380b6f5880fc57d3dba53e28ce226239f3c2 (diff)
downloadgconf-ece2f42e7ce342b793aca86a2d8c975e72fbb4d5.tar.gz
Fix for bug #145141.
2004-07-02 Mark McLoughlin <mark@skynet.ie> Fix for bug #145141. * backends/markup-tree.c: (load_subdirs): recognise subdirs which don't contain a %gconf.xml file but do contain a %gconf-tree.xml file.
Diffstat (limited to 'backends/markup-tree.c')
-rw-r--r--backends/markup-tree.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/markup-tree.c b/backends/markup-tree.c
index f9eeb019..c97f19ce 100644
--- a/backends/markup-tree.c
+++ b/backends/markup-tree.c
@@ -558,8 +558,12 @@ load_subdirs (MarkupDir *dir)
if (stat (fullpath, &statbuf) < 0)
{
- /* This is some kind of cruft, not an XML directory */
- continue;
+ strncpy (fullpath_end+len, "/%gconf-tree.xml", subdir_len - len);
+ if (stat (fullpath, &statbuf) < 0)
+ {
+ /* This is some kind of cruft, not an XML directory */
+ continue;
+ }
}
markup_dir_new (dir->tree, dir, dent->d_name);