When saving a file, Codeblocks apparently resets the file permissions to a default value. This is inconvenient when saving a shell script for example, which should have the execute bit set.
This has been fixed in revision 5104. Use a nightly build as it affects our last stable release.