[erlang-questions] Maybe potential incompatibility of file_info record

Shunichi Shinohara shino.shun@REDACTED
Thu Jun 7 07:39:06 CEST 2018


Hi all,

After using OTP 21-rc2 some days, I encountered a situation
where rebar3/relx-generated release did not start.

The (maybe-indirect) cause is in erlware_commons and the issue
has been filed:
  ec_file:copy fails for not owned source file with OTP 21-rc2
  https://github.com/erlware/erlware_commons/issues/133

In the module, file_info is read and written (copied) after file:copy.
If source file is owned by root, non-root user can not write the file_info
to target's.

It seems that some fields are added to file_info record between 20 and 21-rc2,
might it be nice if it is stated in OTP release's README as potential
incompatibility?

Thanks,
Shino



More information about the erlang-questions mailing list