<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Courier New" size="2"><span style="font-size:10pt;">
<div>When I build rebar release (rebar generate) in the user HOME directory on the NFS (network file system) I always get an error:</div>
<div> ==> rel (generate)</div>
<div> ERROR: Failed to generate target from spec: "write file info /nfs/home/user/src/rel/sep_rpr/erts-5.9.3.1/bin/erlexec: not owner"</div>
<div> ERROR: Unexpected error: rebar_abort</div>
<div> ERROR: generate failed while processing /nfs/home/user/src/rel: rebar_abort</div>
<div> make: *** [rel] Error 1</div>
<div>I found that the write_file_info() with “FromInfo” does owner the file “rel/sep_rpr/erts-5.9.3.1/bin/erlexec” as root</div>
<div>and setting file mode fails with error “not owner”.</div>
<div>Here is my fix.</div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div>git fetch git://github.com/saltos/otp.git reltool_copy_file_not_owner_fix</div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><a href="https://github.com/saltos/otp/compare/erlang:maint...reltool_copy_file_not_owner_fix">https://github.com/saltos/otp/compare/erlang:maint...reltool_copy_file_not_owner_fix</a></div>
<div><a href="https://github.com/saltos/otp/compare/erlang:maint...reltool_copy_file_not_owner_fix.patch">https://github.com/saltos/otp/compare/erlang:maint...reltool_copy_file_not_owner_fix.patch</a></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
<div><font face="Calibri" size="2"><span style="font-size:11pt;"> </span></font></div>
</span></font>
</body>
</html>