aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reltool/src/reltool_utils.erl
diff options
context:
space:
mode:
authorAlexey.Saltanov <[email protected]>2013-04-30 12:22:07 +0400
committerAlexey.Saltanov <[email protected]>2013-04-30 12:22:07 +0400
commit3d99e5ebee69588a5f1e37d0af6a7e429be28792 (patch)
tree0b95a40117cb7fec183270b83b61e43a1e6176ef /lib/reltool/src/reltool_utils.erl
parentd93043ca0839e659abada62b0c6cf4d441808acf (diff)
downloadotp-3d99e5ebee69588a5f1e37d0af6a7e429be28792.tar.gz
otp-3d99e5ebee69588a5f1e37d0af6a7e429be28792.tar.bz2
otp-3d99e5ebee69588a5f1e37d0af6a7e429be28792.zip
Fix possibly "not owner" error while file copy with reltool.
Diffstat (limited to 'lib/reltool/src/reltool_utils.erl')
-rw-r--r--lib/reltool/src/reltool_utils.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reltool/src/reltool_utils.erl b/lib/reltool/src/reltool_utils.erl
index edccb889b1..9af8f6bae8 100644
--- a/lib/reltool/src/reltool_utils.erl
+++ b/lib/reltool/src/reltool_utils.erl
@@ -572,7 +572,7 @@ copy_file(From, To) ->
FromMode = FromInfo#file_info.mode,
ToMode = ToInfo#file_info.mode,
ToMode2 = FromMode bor ToMode,
- FileInfo = FromInfo#file_info{mode = ToMode2},
+ FileInfo = ToInfo#file_info{mode = ToMode2},
write_file_info(To, FileInfo),
ok;
{error, Reason} ->