[asterisk-commits] qwell: trunk r103447 - /trunk/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 12 14:02:33 CST 2008


Author: qwell
Date: Tue Feb 12 14:02:32 2008
New Revision: 103447

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103447
Log:
Use slight more sane permissions

Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?view=diff&rev=103447&r1=103446&r2=103447
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Tue Feb 12 14:02:32 2008
@@ -1425,7 +1425,7 @@
 	ast_str_set(&filepath, 0, "%s/", ast_config_AST_CONFIG_DIR);
 	ast_str_append(&filepath, 0, "%s", fn);
 
-	if ((fd = open(filepath->str, O_CREAT | O_EXCL, 0744)) != -1) {
+	if ((fd = open(filepath->str, O_CREAT | O_EXCL, 0644)) != -1) {
 		close(fd);
 		astman_send_ack(s, m, "New configuration file created successfully");
 	} else 




More information about the asterisk-commits mailing list