]> git.pond.sub.org Git - empserver/commit
(empfile, teldir, motdfil, downfil, disablefil, telfil, annfil)
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 9 Mar 2005 18:44:50 +0000 (18:44 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 9 Mar 2005 18:44:50 +0000 (18:44 +0000)
commit29da4b6cf4e4a32cdb0cade0582d989279f35f62
tree554a8f9596a3c772a7b70aa3d87cd0699e1e7ab7
parent1583d0c6a28223637ab77427330c2befa5107085
(empfile, teldir, motdfil, downfil, disablefil, telfil, annfil)
(banfil, authfil, timestampfil): Make file names relative to DATADIR.
(main): emp_server and files change to the data directory.  fairland
has to write newcap_script to the initial current directory, so it
keeps it and makes file names relative to DATADIR absolute.
(fixup_files): Nothing to do, remove.  This fixes the following bug:
fixup_files() formed file names by appending ep->name instead of the
base name of ep->file to datadir.  Thus, fixup_files() changed file
names even when datadir had the compiled-in value.  When emp_config()
couldn't open econfig, it failed to call fixup_files(), and different
file names got used.  Note that with this revision the file names
revert to the names used before fixup_files() was introduced.  Closes
#1146080.
(print_config): Printing file names as comments is not really useful,
remove.
(otherfiles, ofiles): Unused, remove.
(emp_config, main): Previously, pconfig had to call emp_config() even
when it didn't want to read econfig, just to run fixup_files().  This
is no longer necessary.  Simplify.
include/file.h
src/lib/gen/emp_config.c
src/lib/global/file.c
src/lib/global/path.c
src/server/main.c
src/util/fairland.c
src/util/files.c
src/util/pconfig.c