![]()
From: David Bau (davidbau@hotmail.com)
Date: Thu Jun 21 2001 - 11:26:34 CDT
The most recent tarball of hypermail (2.1.2) has a bug in the way the "latest" directory symlink is created when doing a folders_by_date archive...
It should create a directory symlink to the latest directory, not a file symlink to the latest index.html page. Linking to the latest index.html page makes local hyperlinks mess up when looking at other indexes that should be within "latest".
I've modified the code on my src/file.c to read as follows:
void symlink_latest()
{
char filename[MAXFILELEN];
char dirname[MAXFILELEN];
struct stat stbuf;
#if 0
trio_snprintf(filename, MAXFILELEN, "%s%s.%s",
set_dir, set_latest_folder, set_htmlsuffix);
trio_snprintf(dirname, MAXFILELEN, "%sindex.%s",
latest_folder_path, set_htmlsuffix);
#else
trio_snprintf(filename, MAXFILELEN, "%s%s",
set_dir, set_latest_folder);
trio_snprintf(dirname, MAXFILELEN, "%s",
latest_folder_path);
#endif
...
The #if 0'ed code is wrong, and the #else code works correctly.
cheers, and thanks for the great utility,
David
![]()