Author Topic: c::b changes file mode  (Read 4596 times)

Offline erezz

  • Multiple posting newcomer
  • *
  • Posts: 53
c::b changes file mode
« 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

Offline erezz

  • Multiple posting newcomer
  • *
  • Posts: 53
Re: c::b changes file mode
« Reply #1 on: November 27, 2013, 05:02:58 pm »
Anyone?

Online stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: c::b changes file mode
« Reply #2 on: November 27, 2013, 08:46:07 pm »
C::B version?
OS?
OS Version?

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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: c::b changes file mode
« Reply #3 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.
(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!]

Offline erezz

  • Multiple posting newcomer
  • *
  • Posts: 53
Re: c::b changes file mode
« Reply #4 on: November 28, 2013, 08:14:12 am »
I'm using svn 9455 on Ubuntu 12.04 if it helps.

Offline erezz

  • Multiple posting newcomer
  • *
  • Posts: 53
Re: c::b changes file mode
« Reply #5 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