<p>You are saying because you selected to use glib's use_atomic_file_saving you can't fix the permissions (non-atomically) after glib has done the magic?  Then you could ditch glib and write to temporary file by yourself and call fsync+close and fix file modes and ACL's etc before renaming over the original file.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2251?email_source=notifications&email_token=AAIOWJ6IQQ3INPAZCW6TL5DQDUUZNA5CNFSM4IKRYSC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD36BAXQ#issuecomment-519835742">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ36JA7JYNPCKUNVW5LQDUUZNANCNFSM4IKRYSCQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4GYZC7KKI2VFHCRXLQDUUZNA5CNFSM4IKRYSC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD36BAXQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2251?email_source=notifications\u0026email_token=AAIOWJ6IQQ3INPAZCW6TL5DQDUUZNA5CNFSM4IKRYSC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD36BAXQ#issuecomment-519835742",
"url": "https://github.com/geany/geany/issues/2251?email_source=notifications\u0026email_token=AAIOWJ6IQQ3INPAZCW6TL5DQDUUZNA5CNFSM4IKRYSC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD36BAXQ#issuecomment-519835742",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>