[Bug ada/63222] New: Ada.Directories.Delete_File refuses to delete dangling symlinks
jonathan.gysel at ruag dot com
gcc-bugzilla@gcc.gnu.org
Thu Sep 11 07:43:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63222
Bug ID: 63222
Summary: Ada.Directories.Delete_File refuses to delete dangling
symlinks
Product: gcc
Version: 4.4.7
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
Assignee: unassigned at gcc dot gnu.org
Reporter: jonathan.gysel at ruag dot com
Created attachment 33467
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33467&action=edit
snippet to reproduce the bug
Deleting a dangling symlink with Ada.Directories.Delete_File fails:
# rm asdf; ln -s asdf bsdf && gnatmake symlink_del && ./symlink_del
raised ADA.IO_EXCEPTIONS.NAME_ERROR : file "bsdf" does not exist
If the symlink is not dangling, deleting works well:
# touch asdf && ln -s asdf bsdf && gnatmake symlink_del && ./symlink_del
Deleted Symlink bsdf
More information about the Gcc-bugs
mailing list