]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Jun 2009 19:07:58 +0000 (19:07 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Jun 2009 19:07:58 +0000 (19:07 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13645 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/loggers/mod_logfile/mod_logfile.c
src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c

index 92e335f328a09e738b9152ac634eaa5bcb428bd0..4fbe8873e7ce7d917acbf2b8796302ed2c0145ce 100644 (file)
@@ -93,7 +93,7 @@ static switch_status_t mod_logfile_openlogfile(logfile_profile_t *profile, switc
        flags |= SWITCH_FOPEN_WRITE;
        flags |= SWITCH_FOPEN_APPEND;
 
-       stat = switch_file_open(&afd, profile->logfile, flags, SWITCH_FPROT_UREAD | SWITCH_FPROT_UWRITE, module_pool);
+       stat = switch_file_open(&afd, profile->logfile, flags, SWITCH_FPROT_UREAD | SWITCH_FPROT_UWRITE | SWITCH_FPROT_WREAD, module_pool);
        if (stat != SWITCH_STATUS_SUCCESS) {
                return SWITCH_STATUS_FALSE;
        }
index 529d8523ac394291f083430a183dbcd6b9bf3c07..4e48d6284ae8ab88b0e648bc1e136c5675b4fcb5 100644 (file)
@@ -113,7 +113,7 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
 
        if (!switch_strlen_zero(logdir)) {
                if ((path = switch_mprintf("%s%s%s%s.cdr.xml", logdir, SWITCH_PATH_SEPARATOR, a_prefix, switch_core_session_get_uuid(session)))) {
-                       if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) > -1) {
+                       if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR| S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)) > -1) {
                                int wrote;
                                wrote = write(fd, xml_text, (unsigned) strlen(xml_text));
                                close(fd);
@@ -222,7 +222,7 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to post to web server, writing to file\n");
 
                if ((path = switch_mprintf("%s%s%s%s.cdr.xml", globals.err_log_dir, SWITCH_PATH_SEPARATOR, a_prefix, switch_core_session_get_uuid(session)))) {
-                       if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) > -1) {
+                       if ((fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)) > -1) {
                                int wrote;
                                wrote = write(fd, xml_text, (unsigned) strlen(xml_text));
                                close(fd);