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.)
This commit is contained in:
@@ -377,6 +377,8 @@ tty+GOLDOBJ: dropping or looting by menu wouldn't honor a count for gold
|
||||
unix: remove use of parentheses in nethack man page usage that confused a
|
||||
man page conversion tool
|
||||
unix,vms: allow digits after first character in name at "Who are you?" prompt
|
||||
vms: the DLB configuration could fail to build if a file without a dot
|
||||
in its name happened to match a logical name
|
||||
winCE: disable processing of double-click messages if the first click
|
||||
causes map to scroll
|
||||
Windows, probably MSDOS and OS/2: attempting to use very first false rumor
|
||||
|
||||
Reference in New Issue
Block a user