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);
trio_snprintf(filename, MAXFILELEN, "%s%s",
set_dir, set_latest_folder); trio_snprintf(dirname, MAXFILELEN, "%s", latest_folder_path);
The #if 0'ed code is wrong, and the #else code works correctly.
cheers, and thanks for the great utility,
David Received on Thu 21 Jun 2001 08:18:09 PM GMT
This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:12 AM GMT GMT