SMS Server Tools 3
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. The forum is currently read-only, but will open soon. Sat Jul 27, 2024 04:06
SMSTools3 Community » Bug reports Bottom

[fixed in 3.1.9] umask option bug/everything worldwriteable

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Jun 2010
Location: Nuremberg, Germany
Hi,

the last umask(0) call to get the actual umask if you specify one in the smsd.conf file resets the umask to "0", means everything is world writeable. umask(0) does not have any special meaning to get only the current value back.

--- src/smsd_cfg.c
+++ src/smsd_cfg.c 2010/06/10 10:09:45
@@ -2464,7 +2464,7 @@
else
{
umask(conf_umask);
- mode = umask(0);
+ mode = umask(conf_umask);
}

m = 0666 & ~mode;

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Thank's for reporting this. Your fix will be included in the next version.

Login and Post Reply

Page:  1

SMSTools3 Community » Bug reports Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.