summaryrefslogtreecommitdiff
path: root/security/drweb-sendmail/files/patch-ac
blob: 4f34c32528c72e91d9fef10ded120b9879151b2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- dwf_main.c.orig	Mon Jul 30 05:14:43 2001
+++ dwf_main.c	Sat Aug 25 19:44:40 2001
@@ -199,7 +199,7 @@
             dprintLib("Results: daemon return code %#x (%s)\n", retcode, getDaemonCode( retcode ) );
         }
     }
-    return retcode;
+    _exit(retcode);     /* due to core dump in stdio cleanup() after signal */
 }
 
 /* ----------------------------------------------------------------------- */
@@ -251,7 +251,7 @@
             wprintLib( "can not change directory to root" );
             return -1;
         }
-        umask( 0 );        
+	umask( 0117 );
         if( getrlimit( RLIMIT_NOFILE, &filelimit ) < 0 )
         {
             wprintLib( "can not get system limits" );