News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

c::b changes file mode

Started by erezz, November 25, 2013, 08:26:44 AM

Previous topic - Next topic

erezz

When I edit src files in c::b, I sometimes see that it changes the file mode. For example:

old mode 100755
new mode 100644


How can I disable it?

Thanks,
Erez

erezz


stahta01

C::B version?
OS?
OS Version?

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

Probably linux, but it doesn't matter much, it is obvious that is a some kind of unix.

I guess this happens, because C::B's save is not a typical save operation, but a save-to-temp-and-replace operation.
I guess the new file doesn't have the same permissions as the original.
(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!]

erezz

I'm using svn 9455 on Ubuntu 12.04 if it helps.

erezz

Quote from: oBFusCATed on November 27, 2013, 08:50:14 PM
Probably linux, but it doesn't matter much, it is obvious that is a some kind of unix.

I guess this happens, because C::B's save is not a typical save operation, but a save-to-temp-and-replace operation.
I guess the new file doesn't have the same permissions as the original.

I guess that c::b should get the permissions of the original file and when it does the mv operation, it should set the new file permissions to the original ones.

Erez