Skip to content
  • Benjamin Otte's avatar
    Bug 594034 - Use g_mkstemp_full() when creating the replacement file · 4114f121
    Benjamin Otte authored
    Previous code used g_mkstemp(). But when using
    G_FILE_CREATE_REPLACE_DESTINATION, no attempt was made to ensure proper
    mode and flags of the created temporary file. The visible issue was that
    the file was always created with mode 0600 as opposed to using 0666.
    (The invisible issue was that O_RDWR was used instead of O_WRONLY.)
    4114f121