[asterisk-commits] qwell: branch 1.4 r89254 - in /branches/1.4/channels: chan_iax2.c chan_zap.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Nov 13 15:07:09 CST 2007
Author: qwell
Date: Tue Nov 13 15:07:08 2007
New Revision: 89254
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89254
Log:
Fix building on newer systems which require a third arg to open() when using O_CREAT.
Issue 11238, reported by puzzled.
Modified:
branches/1.4/channels/chan_iax2.c
branches/1.4/channels/chan_zap.c
Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=89254&r1=89253&r2=89254
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Tue Nov 13 15:07:08 2007
@@ -1569,7 +1569,7 @@
ast_log(LOG_WARNING, "Cannot open '%s': %s\n", s, strerror(errno));
return -1;
}
- fd = open(s2, O_RDWR | O_CREAT | O_EXCL);
+ fd = open(s2, O_RDWR | O_CREAT | O_EXCL, 0600);
if (fd < 0) {
ast_log(LOG_WARNING, "Cannot open '%s' for writing: %s\n", s2, strerror(errno));
close(ifd);
Modified: branches/1.4/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_zap.c?view=diff&rev=89254&r1=89253&r2=89254
==============================================================================
--- branches/1.4/channels/chan_zap.c (original)
+++ branches/1.4/channels/chan_zap.c Tue Nov 13 15:07:08 2007
@@ -9479,7 +9479,7 @@
if (ast_strlen_zero(argv[4]))
return RESULT_SHOWUSAGE;
- myfd = open(argv[4], O_CREAT|O_WRONLY);
+ myfd = open(argv[4], O_CREAT|O_WRONLY, 0600);
if (myfd < 0) {
ast_cli(fd, "Unable to open '%s' for writing\n", argv[4]);
return RESULT_SUCCESS;
More information about the asterisk-commits
mailing list