[svn-commits] qwell: trunk r103474 - /trunk/main/manager.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Feb 12 14:27:02 CST 2008


Author: qwell
Date: Tue Feb 12 14:27:01 2008
New Revision: 103474

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103474
Log:
Even more sane permissions.  This should be handled via a umask, like in many other places.

Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?view=diff&rev=103474&r1=103473&r2=103474
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Tue Feb 12 14:27:01 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, 0644)) != -1) {
+	if ((fd = open(filepath->str, O_CREAT | O_EXCL, AST_FILE_MODE)) != -1) {
 		close(fd);
 		astman_send_ack(s, m, "New configuration file created successfully");
 	} else 




More information about the svn-commits mailing list