Hello!

  Since preferences files saves OSM login credentials, I think
it'll be better to store it in secret.

diff --git a/src/preferences.c b/src/preferences.c
index a8eb942..83ad1ac 100644
--- a/src/preferences.c
+++ b/src/preferences.c
@@ -221,6 +221,7 @@ static gboolean preferences_save_to_file()
 
   // TODO: error checking
   FILE *f = g_fopen(fn, "w");
+  g_chmod(fn, 0600);
   g_free ( fn );
 
   if ( f ) {

-- 
Totus tuus, Glebius.
GLEB-RIPE

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Reply via email to