Author Topic: permission change on save  (Read 3242 times)

joshnijenhuis

  • Guest
permission change on save
« on: June 17, 2009, 04:40:33 pm »
Hello, we would like to use codeblock just as an editor. everything works awesome so far except the saving.
we are using codeblocks on linux, saving to various filesystems happens we all.
when we save it changes the permissions of the file both user and group is changed to current user and it chmods to 744 we would like it to just save the data and not do this.
Is this possible?

Is it also possible not to create a temporary file and then rename it, and delete the old one on save, this changes the inode location of the file and then other programs such as apache lose connection to it.

Thanks

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: permission change on save
« Reply #1 on: June 17, 2009, 04:53:02 pm »
Which version of C::B do you use ?

The filesaving-behaviour has changed since release 8.02, because of incorrect access-right settings.

The svn-version (aka nightly) does not write into a temporary file, we only copy the actual file into a temp-file to keep a backup, if writing to the file does not succeed.

joshnijenhuis

  • Guest
Re: permission change on save
« Reply #2 on: June 17, 2009, 08:27:51 pm »
We are using 8.02.
so we should try the svn version out?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: permission change on save
« Reply #3 on: June 17, 2009, 08:36:36 pm »
We are using 8.02.
so we should try the svn version out?

Yes !!!

The easiest way is to look into the actual thread in the nightlies board, to find a prebuild package for your linux distro (if available).

For debian you can use my repo (see signature).