create ickle.conf w/ perms 600, only readable/writable by owner. after

all, the password is kept there.  ok fgsch
This commit is contained in:
pvalchev 2001-12-15 00:26:05 +00:00
parent a8eff59ae2
commit e8f35e4caf

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ickle_Settings_cpp,v 1.1 2001/12/15 00:26:05 pvalchev Exp $
--- ickle/Settings.cpp.orig Sun Oct 7 17:54:18 2001
+++ ickle/Settings.cpp Fri Dec 14 17:03:07 2001
@@ -44,7 +44,7 @@ bool Settings::load(const string& filena
}
bool Settings::save(const string& filename) {
- ofstream of( filename.c_str(), ios::out | ios::trunc );
+ ofstream of( filename.c_str(), ios::out | ios::trunc, 0600 );
if (!of) return false;
hash_map<const string,string,_HashString>::iterator curr = m_map.begin();
while (curr != m_map.end()) {