diff options
author | Mark McLoughlin <mark@skynet.ie> | 2004-07-02 07:55:20 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@src.gnome.org> | 2004-07-02 07:55:20 +0000 |
commit | ece2f42e7ce342b793aca86a2d8c975e72fbb4d5 (patch) | |
tree | d9e59862ad272ed1925092762faf78fa2c67d9d8 /backends/markup-tree.c | |
parent | 9dd2380b6f5880fc57d3dba53e28ce226239f3c2 (diff) | |
download | gconf-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.c | 8 |
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); |