Uploaded image for project: 'FreeSWITCH'
  1. FreeSWITCH
  2. FS-7004

files create by mod_sndfile don't respect process' umask

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.13
    • Fix Version/s: 1.4.16
    • Component/s: mod_sndfile
    • Labels:
      None
    • Kernel:
      Linux
    • Userland:
      GNU/Linux
    • Compiler:
      gcc
    • FreeSWITCH GIT Revision:
      07c5cc18ba57a57ed082985a1a5f830dce7ee793
    • GIT Master Revision hash::
      07c5cc18ba57a57ed082985a1a5f830dce7ee793
    • Target Version:

      Description

      files created by mod_sndfile are created with fixed permissions (see [1]), instead of respecting the process' umask as the other files (for example, mp3s created by mod_shout).

      This is because libsndfile's sf_open() doesn't accept a file permissions arguments.

      A solution could be to manually open the files with correct permissions and then call sf_open_fd() on the resulting file descriptor.


      [1] https://github.com/erikd/libsndfile/blob/7a5f494183051ab12de036fc8490ef8cb37913b3/src/file_io.c#L536

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mikej Mike Jerris
                Reporter:
                flavio Flavio Grossi
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: