]> granicus.if.org Git - nethack/commit
vms file access
authornethack.rankin <nethack.rankin>
Sun, 28 Oct 2007 09:37:56 +0000 (09:37 +0000)
committernethack.rankin <nethack.rankin>
Sun, 28 Oct 2007 09:37:56 +0000 (09:37 +0000)
commita675cc6ed7523a1881b4e94b1942db0466e9442b
tree85fc1119c0961afee45b96e4d7964ee4b8726958
parentcac2dd4d33121f6a407928a5dec5b990840c98c4
vms file access

     Fix the problem From a bug report.  His system has a logical name "DATA" pointing at some disk, and
when the dlb utility tried to open "data" for inclusion in the library
being built at install time, it attempted to access the wrong thing and
failed.  He then attempted to fix it in a manner which let dlb finish, by
modifying dlb_main.c to append "." to file names that lack a dot, but
then nethack couldn't access "dungeon" in the library because string
comparison didn't match the altered dlb directory entry of "dungeon.".

     NetHack was working around this unintended interaction with the
environment issue in fopen_datafile(), and dlb was doing so for fopen()
but not open().  This moves nethack's fixup out of src/files.c and into
sys/vms/vmsfiles.c, adds another routine there so that both open() and
fopen() are covered, and updates the vms Makefiles so that the various
utility programs all link with vmsfiles.  (The build script vmsbuild.com
puts object files into a library and gets that last bit for free.)
doc/fixes34.4
include/vmsconf.h
src/files.c
sys/vms/Makefile.src
sys/vms/Makefile.utl
sys/vms/vmsfiles.c
util/dlb_main.c