projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed another weird bug caused by the static mailpath being overwritten.
[mmh]
/
uip
/
replsbr.c
diff --git
a/uip/replsbr.c
b/uip/replsbr.c
index
7515f11
..
a7616d3
100644
(file)
--- a/
uip/replsbr.c
+++ b/
uip/replsbr.c
@@
-3,6
+3,10
@@
* replsbr.c -- routines to help repl along...
*
* $Id$
* replsbr.c -- routines to help repl along...
*
* $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.
*/
#include <h/mh.h>
*/
#include <h/mh.h>
@@
-72,14
+76,16
@@
replout (FILE *inb, char *msg, char *drft, struct msgs *mp, int outputlinelen,
register char **nxtbuf;
register char **ap;
register struct comp **savecomp;
register char **nxtbuf;
register char **ap;
register struct comp **savecomp;
- int char_read = 0, format_len;
+ int char_read = 0, format_len, mask;
char name[NAMESZ], *scanl, *cp;
FILE *out;
char name[NAMESZ], *scanl, *cp;
FILE *out;
- umask(~m_gmprot());
+ mask = umask(~m_gmprot());
if ((out = fopen (drft, "w")) == NULL)
adios (drft, "unable to create");
if ((out = fopen (drft, "w")) == NULL)
adios (drft, "unable to create");
+ umask(mask);
+
/* get new format string */
cp = new_fs (form, NULL, NULL);
format_len = strlen (cp);
/* get new format string */
cp = new_fs (form, NULL, NULL);
format_len = strlen (cp);