summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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..'"'))