[Freeswitch-svn] [commit] r4029 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Mon Jan 22 21:54:20 EST 2007
Author: mikej
Date: Mon Jan 22 21:54:20 2007
New Revision: 4029
Modified:
freeswitch/trunk/src/switch_xml.c
Log:
use the right #define flags for permissions on open.
Modified: freeswitch/trunk/src/switch_xml.c
==============================================================================
--- freeswitch/trunk/src/switch_xml.c (original)
+++ freeswitch/trunk/src/switch_xml.c Mon Jan 22 21:54:20 2007
@@ -59,6 +59,14 @@
#ifdef HAVE_MMAP
#include <sys/mman.h>
#endif
+#ifdef WIN32
+#ifndef S_IRUSR
+#define S_IRUSR _S_IREAD
+#endif
+#ifndef S_IWUSR
+#define S_IWUSR _S_IWRITE
+#endif
+#endif
#define SWITCH_XML_WS "\t\r\n " // whitespace
#define SWITCH_XML_ERRL 128 // maximum error string length
@@ -860,7 +868,7 @@
goto done;
}
- if ((new_fd = open(new_file, O_WRONLY | O_CREAT | O_TRUNC, 700)) < 0) {
+ if ((new_fd = open(new_file, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) < 0) {
goto done;
}
close_fd = new_fd;
More information about the Freeswitch-svn
mailing list