[asterisk-commits] trunk - r7662 /trunk/apps/app_chanspy.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Dec 27 15:03:19 CST 2005


Author: russell
Date: Tue Dec 27 15:03:18 2005
New Revision: 7662

URL: http://svn.digium.com/view/asterisk?rev=7662&view=rev
Log:
fix permissions of created recordings (issue #6067)

Modified:
    trunk/apps/app_chanspy.c

Modified: trunk/apps/app_chanspy.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_chanspy.c?rev=7662&r1=7661&r2=7662&view=diff
==============================================================================
--- trunk/apps/app_chanspy.c (original)
+++ trunk/apps/app_chanspy.c Tue Dec 27 15:03:18 2005
@@ -440,7 +440,7 @@
 	if (recbase) {
 		char filename[512];
 		snprintf(filename,sizeof(filename),"%s/%s.%d.raw",ast_config_AST_MONITOR_DIR, recbase, (int)time(NULL));
-		if ((fd = open(filename, O_CREAT | O_WRONLY, O_TRUNC)) <= 0) {
+		if ((fd = open(filename, O_CREAT | O_WRONLY | O_TRUNC, 0644)) <= 0) {
 			ast_log(LOG_WARNING, "Cannot open %s for recording\n", filename);
 			fd = 0;
 		}



More information about the asterisk-commits mailing list