[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ada.directories.full_name and circular symlinks


If foo is a symlink targeting "foo", GNAT's implementation of
Ada.Directories.Full_Name ("foo") returns "".

System.OS_Lib.Normalize_Pathname body ends with:

--  Too many iterations: give up
--  This can happen when there is a circularity in the symbolic links: A
--  is a symbolic link for B, which itself is a symbolic link, and the
--  target of B or of another symbolic link target of B is A. In this
--  case, we return an empty string to indicate failure to resolve.

This seems to be an error according to RM-A-16 72/2.
Do I miss something, or is it a bug?

Reply to: