diff --git a/src/sbbs3/mailsrvr.c b/src/sbbs3/mailsrvr.c index 2662f430c8ffc2145e32754b02e3647e4668b414..02a482b25a88e39290bf23ac9be725747c1cfba8 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); }