Changeset 11128 in ntrip for trunk/BNC/src/bncsettings.cpp


Ignore:
Timestamp:
Oct 24, 2026, 11:37:52 PM (9 days ago)
Author:
stuerze
Message:

Some fixes from security point of view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncsettings.cpp

    r11087 r11128  
    1515 * -----------------------------------------------------------------------*/
    1616
     17#include <QFile>
    1718#include <QSettings>
    1819
    … …  
    272273
    273274    settings.sync();
    274 }
     275
     276    // The file contains passwords: readable for the owner only
     277    QFile::setPermissions(BNC_CORE->confFileName(), QFile::ReadOwner | QFile::WriteOwner);
     278}
Note: See TracChangeset for help on using the changeset viewer.