[Geany-devel] Overwriting a link on save as
lists.ban at xxxxx
Tue Mar 1 23:57:01 UTC 2011
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1955 bytes
Desc: not available
More information about the Devel