[svn-commits] branch 1.2 - r7663 /branches/1.2/apps/app_chanspy.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Tue Dec 27 15:07:09 CST 2005
Author: russell
Date: Tue Dec 27 15:07:08 2005
New Revision: 7663
URL: http://svn.digium.com/view/asterisk?rev=7663&view=rev
Log:
backport fix for permissions of created recordings (issue #6067)
Modified:
branches/1.2/apps/app_chanspy.c
Modified: branches/1.2/apps/app_chanspy.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_chanspy.c?rev=7663&r1=7662&r2=7663&view=diff
==============================================================================
--- branches/1.2/apps/app_chanspy.c (original)
+++ branches/1.2/apps/app_chanspy.c Tue Dec 27 15:07:08 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 svn-commits
mailing list