]> git.pond.sub.org Git - empserver/commit
Make econfig keys data and info work for relative names
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 3 Feb 2008 19:51:38 +0000 (20:51 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 7 Feb 2008 07:01:54 +0000 (08:01 +0100)
commit4bb23dd1a64f105db5dc679a0618c3b65338ca6b
tree256cc6c8bdb8663155dd967b87d2b9713fffdf29
parent7379041d2628667cbb7b762ba02fd3eaebb77a4a
Make econfig keys data and info work for relative names

File names in econfig need to be interpreted relative to configdir.
This wasn't the case everywhere for keys data and info.

Fix this by changing variables gamedir and infodir to hold absolute
names.  Change builtindir likewise, for consistency.  Store the values
from econfig in gamedir_conf, infodir_conf and builtindir_conf.

Uses new fnameat() to derive absolute names from possibly relative
ones.
include/econfig-spec.h
include/optlist.h
include/prototypes.h
src/lib/common/emp_config.c
src/lib/gen/fnameat.c [new file with mode: 0644]
src/lib/global/path.c.in