From 3d99e5ebee69588a5f1e37d0af6a7e429be28792 Mon Sep 17 00:00:00 2001 From: "Alexey.Saltanov" Date: Tue, 30 Apr 2013 12:22:07 +0400 Subject: Fix possibly "not owner" error while file copy with reltool. --- lib/reltool/src/reltool_utils.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/reltool/src') 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} -> -- cgit v1.2.3