News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Editing symlinked file in Code::Blocks

Started by Totoxa, December 20, 2015, 02:21:32 AM

Previous topic - Next topic

Totoxa

Editing a file that is a symlink to other file removes the symlink and creates a regular file with the new content.
Is there a setting to disable this behaviour?(I searched)

I'm using Code::Blocks 13.12 on Debian testing (C::B installed from Debian repos).


oBFusCATed

This happens because C::B tries to minimize the chance for data loss, so it uses a new-file+swap instead of writing directly over the old file.
Probably we should disable this mechanism when saving to symlinks or do something more clever.

Can you open an issue about this problem on sf.net?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Totoxa