[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nmh-commits] CVS: nmh/uip replsbr.c,1.3,1.4
From: |
Glenn Burkhardt <address@hidden> |
Subject: |
[Nmh-commits] CVS: nmh/uip replsbr.c,1.3,1.4 |
Date: |
Wed, 25 Jun 2003 21:30:39 -0400 |
Update of /cvsroot/nmh/nmh/uip
In directory subversions:/tmp/cvs-serv15382
Modified Files:
replsbr.c
Log Message:
fix for bug #578 repl leaks umask; there are several other
places in the code where the umask value is not restored,
so there might be other similar bugs
Index: replsbr.c
===================================================================
RCS file: /cvsroot/nmh/nmh/uip/replsbr.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** replsbr.c 2 Jul 2002 22:09:15 -0000 1.3
--- replsbr.c 26 Jun 2003 01:30:36 -0000 1.4
***************
*** 77,87 ****
register char **ap;
register struct comp **savecomp;
! int char_read = 0, format_len;
char name[NAMESZ], *scanl, *cp;
FILE *out;
! umask(~m_gmprot());
if ((out = fopen (drft, "w")) == NULL)
adios (drft, "unable to create");
/* get new format string */
--- 77,89 ----
register char **ap;
register struct comp **savecomp;
! int char_read = 0, format_len, mask;
char name[NAMESZ], *scanl, *cp;
FILE *out;
! mask = umask(~m_gmprot());
if ((out = fopen (drft, "w")) == NULL)
adios (drft, "unable to create");
+
+ umask(mask);
/* get new format string */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nmh-commits] CVS: nmh/uip replsbr.c,1.3,1.4,
Glenn Burkhardt <address@hidden> <=