Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: erezz on November 25, 2013, 08:26:44 am

Title: c::b changes file mode
Post by: erezz on November 25, 2013, 08:26:44 am
When I edit src files in c::b, I sometimes see that it changes the file mode. For example:

Code
old mode 100755
new mode 100644

How can I disable it?

Thanks,
Erez
Title: Re: c::b changes file mode
Post by: erezz on November 27, 2013, 05:02:58 pm
Anyone?
Title: Re: c::b changes file mode
Post by: stahta01 on November 27, 2013, 08:46:07 pm
C::B version?
OS?
OS Version?

Tim S.
Title: Re: c::b changes file mode
Post by: 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.
Title: Re: c::b changes file mode
Post by: erezz on November 28, 2013, 08:14:12 am
I'm using svn 9455 on Ubuntu 12.04 if it helps.
Title: Re: c::b changes file mode
Post by: erezz on November 28, 2013, 08:15:43 am
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