[erlang-bugs] release_handler:remove_file fails on symlinks

Gustav Simonsson <>
Tue Jan 17 11:10:26 CET 2012


Hi Anders!

file:read_file_info/1 does indeed return {error,enoent}on symbolic 
directory links,
causing release_handler:remove_file/1 to fail on such links, or on 
directories containing one.

We will add a fix for this in the next release.

Thank you for the report!

Regards,
Gustav Simonsson

On 2012-01-13 01:34, Anders Nygren wrote:
> Hi
> release_handler:remove_file fails if the file is a symlink. This
> causes release_handler:remove_release to fail
> halfway through removing the release, leaving the system in an
> inconsistent state.
>
> The reason is that file:read_file_info/1 is used to check if a file is
> a directory or a normal file.
> It seems to me like changing to file:read_link_info/1 fixes the problem.
>
> /Anders
> _______________________________________________
> erlang-bugs mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-bugs



More information about the erlang-bugs mailing list