diff options
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/feed2imap.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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) |