[hypermail] Symlink of latest directory

From: David Bau <davidbau_at_hotmail.com_at_hypermail-project.org>
Date: Thu, 21 Jun 2001 12:26:34 -0400
Message-ID: <OE8mOlbcrYP0QzBxhJT0000ab53_at_hotmail.com>

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);


    trio_snprintf(filename, MAXFILELEN, "%s%s",

                  set_dir, set_latest_folder);
    trio_snprintf(dirname, MAXFILELEN, "%s",



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