Commit d5217f6b authored by Ted Trask's avatar Ted Trask

Changed /etc/fetchmailrc permissions to 600

parent 7f42e94c
......@@ -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..'"'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment