Skip to content
  • Tomáš Trnka's avatar
    Fix writing ICEAuthority file · 0dcf3445
    Tomáš Trnka authored and Fushan Wen's avatar Fushan Wen committed
    Commit 9398f6cf "Remove iceauth
    dependency" introduced two bugs:
    
    1) "fp" is never closed, so the generated auth data stays buffered in
       memory for some indeterminate time and the file stays empty on disk.
       This completely breaks authentication and thus also session restore.
    
    2) Checking the return value of IceWriteAuthFileEntry() is inverted (the
       function returns non-zero on success), so warnings are printed iff
       everything goes well.
    
    BUG: 487912
    0dcf3445