summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-02-23 09:19:15 +0000
committerTed Trask <ttrask01@yahoo.com>2010-02-23 09:19:15 +0000
commita245911fb2f3519b14d3a620e007740827a05aa5 (patch)
tree4afb289ac7fe0cc8434d2e3db3347161c857d28c /lib
parentebea63827ab5b606772b3a9cffe07f90be92c707 (diff)
downloadacf-core-a245911fb2f3519b14d3a620e007740827a05aa5.tar.bz2
acf-core-a245911fb2f3519b14d3a620e007740827a05aa5.tar.xz
Fix modelfunctions.write_file_with_audit to keep file permissions and ownership.
Diffstat (limited to 'lib')
-rw-r--r--lib/modelfunctions.lua1
1 files changed, 1 insertions, 0 deletions
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)