diff options
author | Fredrik Gustafsson <[email protected]> | 2013-05-16 09:57:06 +0200 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-05-16 09:57:06 +0200 |
commit | 0bd39fcb975b98ff03267b5c6950f242b19adc75 (patch) | |
tree | 344dc884f916125ac71c731d6079bbe6d5387b7e /lib/reltool/src/reltool_utils.erl | |
parent | 54f5cea53853351ecd0042ebe0e9b9bdc1ba4449 (diff) | |
parent | 3d99e5ebee69588a5f1e37d0af6a7e429be28792 (diff) | |
download | otp-0bd39fcb975b98ff03267b5c6950f242b19adc75.tar.gz otp-0bd39fcb975b98ff03267b5c6950f242b19adc75.tar.bz2 otp-0bd39fcb975b98ff03267b5c6950f242b19adc75.zip |
Merge branch 'sla/reltool_copy_file_not_owner_fix/OTP-11099' into maint
* sla/reltool_copy_file_not_owner_fix/OTP-11099:
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.erl | 2 |
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} -> |