From 014459ea14d29aab323264e00ac3a7ee5e984753 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 28 Sep 2006 05:56:24 +0000
Subject: [PATCH] Fix bug in signal_smtp_sem would would create the file with
 undefined permissions on *nix possibly making untouchable later.

---
 src/sbbs3/mailsrvr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sbbs3/mailsrvr.c b/src/sbbs3/mailsrvr.c
index 2662f430c8..02a482b25a 100644
--- a/src/sbbs3/mailsrvr.c
+++ b/src/sbbs3/mailsrvr.c
@@ -1365,7 +1365,7 @@ static void signal_smtp_sem(void)
 	if(scfg.smtpmail_sem[0]==0) 
 		return; /* do nothing */
 
-	if((file=open(scfg.smtpmail_sem,O_WRONLY|O_CREAT|O_TRUNC))!=-1)
+	if((file=open(scfg.smtpmail_sem,O_WRONLY|O_CREAT|O_TRUNC,S_IREAD|S_IWRITE))!=-1)
 		close(file);
 }
 
-- 
GitLab