From 2296da8a7783873f80ba97beb7bc512bee44e5c5 Mon Sep 17 00:00:00 2001 From: lnu Date: Wed, 28 Sep 2005 07:16:10 +0000 Subject: atom parser fix, issue warning when config file is world-readable git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@69 f70e237a-67f3-0310-a06c-d2b8a7116972 --- lib/feed2imap/feed2imap.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/feed2imap/feed2imap.rb') diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb index 38046e9..a20eeed 100644 --- a/lib/feed2imap/feed2imap.rb +++ b/lib/feed2imap/feed2imap.rb @@ -46,6 +46,10 @@ class Feed2Imap @logger.fatal("Configuration file #{configfile} not found.") exit(1) end + if (File::stat(configfile).mode & 044) != 0 + @logger.warn("Configuration file is readable by other users. It" + + "probably contains your password.") + end begin File::open(configfile) { |f| @config = F2IConfig::new(f) -- cgit v1.2.3-70-g09d2