Skip to content
  • Maciej S. Szmigiero's avatar
    Use "e" mode flag in fopen () calls for race-free setting of the close-on-exec flag · 0e7bf99e
    Maciej S. Szmigiero authored and Philip Withnall's avatar Philip Withnall committed
    All Unix CRTs examined: glibc, musl, BSDs, Apple libc, Android bionic
    ignore unknown fopen () mode flags, so this flag can be added
    unconditionally for Unix builds.
    
    Only Windows CRT is intolerant of these, so the single case in
    g_dbus_address_connect () where the fopen () call is shared between Unix
    and Windows needs appropriate platform-specific handling.
    
    Skipped the call sites in libcharset and xdgmime copylibs.
    0e7bf99e