BugĀ 620496 - schema compiler: reject invalid paths
authorRyan Lortie <desrt@desrt.ca>
Mon, 7 Jun 2010 08:18:43 +0000 (10:18 +0200)
committerRyan Lortie <desrt@desrt.ca>
Mon, 7 Jun 2010 08:18:43 +0000 (10:18 +0200)
commit71c5e3f899bf15c9dee09b36f146c5e72652d72b
tree5d456fec0737b53b6f02ed18e45cea5147a209e4
parenta0c044b5c65500080c15e2c5e315bf87487e63b7
BugĀ 620496 - schema compiler: reject invalid paths

The GSettings schema compiler was accepting any string as a path.  It is
probably quite a common mistake to suspect that '/apps/foo' is a valid
path name when this will cause all sorts of trouble later.  Check for
this case and report the error.
gio/gschema-compile.c
gio/tests/gschema-compile.c
gio/tests/schema-tests/invalid-path.gschema.xml [new file with mode: 0644]