X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fseq_save.c;h=94b7543215ae671d89019d96d131dbffc647897e;hp=f8de9ed106ed9092c84a82ec0df0dc1bf480af10;hb=5dd6771b28c257af405d7248639ed0e3bcdce38b;hpb=5afa7072e3fe7fc42287e2149e1c23b363700795 diff --git a/sbr/seq_save.c b/sbr/seq_save.c index f8de9ed..94b7543 100644 --- a/sbr/seq_save.c +++ b/sbr/seq_save.c @@ -3,8 +3,6 @@ * seq_save.c -- 1) synchronize sequences * -- 2) save public sequences * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -76,9 +74,9 @@ priv: * If that fails (probably because folder is * readonly), then make sequence private. */ - if ((fp = fopen (seqfile, "w")) == NULL + if ((fp = lkfopen (seqfile, "w")) == NULL && (unlink (seqfile) == -1 || - (fp = fopen (seqfile, "w")) == NULL)) { + (fp = lkfopen (seqfile, "w")) == NULL)) { admonish (attr, "unable to write"); goto priv; } @@ -96,7 +94,7 @@ priv: } if (fp) { - fclose (fp); + lkfclose (fp, seqfile); SIGPROCMASK (SIG_SETMASK, &oset, &set); /* reset signal mask */ } else { /*