as its config file. However, there is a bug -- if you specify a
directory (like accidentally typing "mutt -F /etc/mutt") mutt will
silently ignore the flag and leave you wondering why it isn't
working.
Emil Sit posted a patch for this in March of 2002, but it seems to
have slipped through the cracks. Here's the patch again; please
consider it for inclusion.
char *linebuf = NULL;
size_t buflen;
pid_t pid;
+ struct stat s;
+
+ if (stat (rcfile, &s) < 0)
+ {
+ snprintf (err->data, err->dsize, _("%s: stat: %s"), rcfile, strerror (errno));
+ return (-1);
+ }
+ if (!S_ISREG (s.st_mode))
+ {
+ snprintf (err->data, err->dsize, _("%s: not a regular file"), rcfile);
+ return (-1);
+ }
if ((f = mutt_open_read (rcfile, &pid)) == NULL)
{