diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-02-23 09:19:15 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-02-23 09:19:15 +0000 |
commit | a245911fb2f3519b14d3a620e007740827a05aa5 (patch) | |
tree | 4afb289ac7fe0cc8434d2e3db3347161c857d28c /lib | |
parent | ebea63827ab5b606772b3a9cffe07f90be92c707 (diff) | |
download | acf-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.lua | 1 |
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) |