X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fseq_read.c;h=f36edb56cfb8cf5cc9f79d0b0d45088fd9dced2e;hb=e345f8fdce3a18cab73f3edf65ca60f8357efda0;hp=b1dc3a5ae069cd22f27e525ba991b6a063b41f72;hpb=6c42153ad9362cc676ea66563bf400d7511b3b68;p=mmh diff --git a/sbr/seq_read.c b/sbr/seq_read.c index b1dc3a5..f36edb5 100644 --- a/sbr/seq_read.c +++ b/sbr/seq_read.c @@ -22,17 +22,13 @@ static void seq_private (struct msgs *); /* * Get the sequence information for this folder from - * .mh_sequence (or equivalent specified in .mh_profile) + * .mh_sequences (or equivalent specified in .mh_profile) * or context file (for private sequences). */ void seq_read (struct msgs *mp) { - /* sanity check - check that context has been read */ - if (defpath == NULL) - adios (NULL, "oops, context hasn't been read yet"); - /* * Initialize the list of sequence names. Go ahead and * add the "cur" sequence to the list of sequences. @@ -77,7 +73,7 @@ seq_public (struct msgs *mp) /* get filename of sequence file */ snprintf (seqfile, sizeof(seqfile), "%s/%s", mp->foldpath, mh_seq); - if ((fp = fopen (seqfile, "r")) == NULL) + if ((fp = lkfopen (seqfile, "r")) == NULL) return; /* Use m_getfld to scan sequence file */ @@ -115,7 +111,7 @@ seq_public (struct msgs *mp) break; /* break from for loop */ } - fclose (fp); + lkfclose (fp, seqfile); }