From de2fb97f15ac98aa1d1c5533aacca378334f4778 Mon Sep 17 00:00:00 2001
From: Anthony Ramine
Date: Tue, 1 Jul 2014 00:58:26 +0200
Subject: 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
---
erts/doc/src/erl_prim_loader.xml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
(limited to 'erts/doc/src')
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
@@ -147,6 +147,22 @@
See code(3) about archive files.
+
+
+ Get information about a link or file
+
+ This function works like
+ read_file_info/1
+ except that if Filename is a symbolic link,
+ information about the link will be returned in the file_info
+ record and the type field of the record will be set to
+ symlink.
+ If Filename is not a symbolic link, this function
+ returns exactly the same result as read_file_info/1.
+ On platforms that do not support symbolic links, this function
+ is always equivalent to read_file_info/1.
+
+
Set the path of the loader
--
cgit v1.2.3