summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-05-27 09:18:52 +0000
committerTed Trask <ttrask01@yahoo.com>2009-05-27 09:18:52 +0000
commitd5217f6baeb1fd3d6a7925846312a31e2830378f (patch)
tree39d421a5953a3fee7593b40e1c1bfda6aa3794e2
parent7f42e94cbf9759347559c1c679f3e71a80c287e0 (diff)
downloadacf-fetchmail-d5217f6baeb1fd3d6a7925846312a31e2830378f.tar.bz2
acf-fetchmail-d5217f6baeb1fd3d6a7925846312a31e2830378f.tar.xz
Changed /etc/fetchmailrc permissions to 600
-rw-r--r--fetchmail-model.lua6
1 files 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..'"'))