diff options
author | Anthony Ramine <[email protected]> | 2014-07-01 00:58:26 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2014-07-09 14:57:11 +0200 |
commit | de2fb97f15ac98aa1d1c5533aacca378334f4778 (patch) | |
tree | da2c0c88479b4bbcdbfe04b1de8632627831bf3e /erts/doc/src/erl_prim_loader.xml | |
parent | c9e36ab16034bb7fe71f772df6bba22070976bbf (diff) | |
download | otp-de2fb97f15ac98aa1d1c5533aacca378334f4778.tar.gz otp-de2fb97f15ac98aa1d1c5533aacca378334f4778.tar.bz2 otp-de2fb97f15ac98aa1d1c5533aacca378334f4778.zip |
Fix handling of broken symlinks in filelib
This fixes a bug introduced in f11aabdc9fec593c31e6c4f3fa25c1707e9c35df where
filelib:eval_read_file_info/2 was made to use file:read_link_info/1 to never
follow symlinks. This fixed wildcard/1 but broke every other function using
eval_read_file_info/2.
Reported-by: Louis-Philippe Gauthier
Reported-by: Danil Zagoskin
Diffstat (limited to 'erts/doc/src/erl_prim_loader.xml')
-rw-r--r-- | erts/doc/src/erl_prim_loader.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/erts/doc/src/erl_prim_loader.xml b/erts/doc/src/erl_prim_loader.xml index 6751deda4d..171f84decc 100644 --- a/erts/doc/src/erl_prim_loader.xml +++ b/erts/doc/src/erl_prim_loader.xml @@ -148,6 +148,22 @@ </desc> </func> <func> + <name name="read_link_info" arity="1"/> + <fsummary>Get information about a link or file</fsummary> + <desc> + <p>This function works like + <seealso marker="#read_file_info/1">read_file_info/1</seealso> + except that if <c><anno>Filename</anno></c> is a symbolic link, + information about the link will be returned in the <c>file_info</c> + record and the <c>type</c> field of the record will be set to + <c>symlink</c>.</p> + <p>If <c><anno>Filename</anno></c> is not a symbolic link, this function + returns exactly the same result as <c>read_file_info/1</c>. + On platforms that do not support symbolic links, this function + is always equivalent to <c>read_file_info/1</c>.</p> + </desc> + </func> + <func> <name name="set_path" arity="1"/> <fsummary>Set the path of the loader</fsummary> <desc> |