[svn-commits] russell: trunk r103387 - /trunk/main/manager.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Feb 12 09:16:39 CST 2008


Author: russell
Date: Tue Feb 12 09:16:39 2008
New Revision: 103387

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103387
Log:
Fix build on *BSD.  These permissions constants are not available there.

Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?view=diff&rev=103387&r1=103386&r2=103387
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Tue Feb 12 09:16:39 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, S_IRUSR | S_IWUSR | S_IRGRP| S_IROTH)) != -1) {
+	if ((fd = open(filepath->str, O_CREAT | O_EXCL, 0744)) != -1) {
 		close(fd);
 		astman_send_ack(s, m, "New configuration file created successfully");
 	} else 




More information about the svn-commits mailing list