[596] in Zephyr_Bugs
SIGFPE dump not working -- FIX
daemon@ATHENA.MIT.EDU (Dan Egnor)
Mon Jul 3 20:54:30 1995
To: zephyr-bugs@MIT.EDU
Date: Mon, 03 Jul 1995 17:52:29 -0700
From: Dan Egnor <egnor@ugcs.caltech.edu>
The configure script sets FOUND_TMP in config.h to the pathname of a temp
directory, e.g. "/usr/tmp". In sysdep.h:
#ifdef HAVE_PATHS_H
# include <paths.h>
# define TEMP_DIRECTORY _PATH_VARTMP
#else
# define TEMP_DIRECTORY FOUND_TMP
#endif
... so TEMP_DIRECTORY is "/usr/tmp". Then in server/main.c:
sprintf(filename, "%szephyr.db", TEMP_DIRECTORY);
fp = fopen(filename, "w");
which makes the filename "/usr/tmpzephyr.db". No wonder it can't dump.
Either TEMP_DIRECTORY needs a trailing slash, or (I chose this) the sprintf
needs to insert one:
sprintf(filename, "%s/zephyr.db", TEMP_DIRECTORY);
... and a couple similar changes for other files it makes in /usr/tmp.
If only the server death problem could be fixed so readily!
Dan