From a245911fb2f3519b14d3a620e007740827a05aa5 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 23 Feb 2010 09:19:15 +0000 Subject: Fix modelfunctions.write_file_with_audit to keep file permissions and ownership. --- lib/modelfunctions.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/modelfunctions.lua b/lib/modelfunctions.lua index 70f1412..3a02bd5 100644 --- a/lib/modelfunctions.lua +++ b/lib/modelfunctions.lua @@ -205,6 +205,7 @@ function write_file_with_audit (self, path, str) end fs.write_file(tmpfile,str) + fs.copy_properties(path, tmpfile) if (type(pre) == "string" and #pre) then os.execute(pre) -- cgit v1.2.3