[erlang-patches] Fix reltool copy_file "not owner" error.

Saltanov, Alexey Alexey.Saltanov@REDACTED
Mon Apr 22 13:43:10 CEST 2013


When I build rebar release (rebar generate) in the user HOME directory on the NFS (network file system) I always get an error:
  ==> rel (generate)
  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"
  ERROR: Unexpected error: rebar_abort
  ERROR: generate failed while processing /nfs/home/user/src/rel: rebar_abort
  make: *** [rel] Error 1
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
and setting file mode fails with error "not owner".
Here is my fix.

git fetch git://github.com/saltos/otp.git reltool_copy_file_not_owner_fix

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.patch



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20130422/21c3ac65/attachment.htm>


More information about the erlang-patches mailing list