From d5217f6baeb1fd3d6a7925846312a31e2830378f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 27 May 2009 09:18:52 +0000 Subject: Changed /etc/fetchmailrc permissions to 600 --- fetchmail-model.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fetchmail-model.lua b/fetchmail-model.lua index f105ba9..2a3b1e4 100644 --- a/fetchmail-model.lua +++ b/fetchmail-model.lua @@ -250,7 +250,7 @@ local function writeentryline(entrystruct, entryline) end fs.write_file(configfile, string.gsub(table.concat(lines), "\n+$", "")) - posix.chmod(configfile, "rwx--x---") + posix.chmod(configfile, "rw-------") config = nil end @@ -366,7 +366,7 @@ end function update_filecontent(filedetails) -- FIXME - validation local retval = modelfunctions.setfiledetails(filedetails, {configfile}) - posix.chmod(configfile, "rwx--x---") + posix.chmod(configfile, "rw-------") config = nil return retval end @@ -420,7 +420,7 @@ function updateconfig(conf) end fs.write_file(configfile, table.concat(lines)) - posix.chmod(configfile, "rwx--x---") + posix.chmod(configfile, "rw-------") config = nil fs.write_file(confdfile, format.update_ini_file(fs.read_file(confdfile) or "", "", "polling_period", '"'..conf.value.interval.value..'"')) -- cgit v1.2.3