Hi all,
A user (yecril71pl) on #geany reported that saving as a file with the name of a symbolic link correctly ask for replacing but will try to modify the file at the location pointed by the link rather than replacing the link by a new file. This is IMHO at least not expected, and may be problematic if e.g. the target of that link isn't writable, since the write will fail (if using unsafe file saving).
I then suggest to delete the file on "save as" if we see it's a symbolic link, so we will create a fresh new file with the proper name.
I attach a patch for this, but I'm not sure it's really the right way/place to do this.
Any thoughts?
Kind regards, Colomban