problem with modifying checked out files

Hi All, I am experiencing a strange problem with files checked out from the Boost CVS. The files are checked out as read-only, and even if I remove the read-only flag (attrib -R afile.hpp), I am not able to modify them -- access denied. Does this ring any bell or does it sound like some glitch related to my PC? Thanks, Arkadiy

Arkadiy Vertleyb wrote:
Hi All,
I am experiencing a strange problem with files checked out from the Boost CVS. The files are checked out as read-only, and even if I remove the read-only flag (attrib -R afile.hpp), I am not able to modify them -- access denied.
Does this ring any bell or does it sound like some glitch related to my PC?
Are you using "cvs edit afile.hpp" ? That works for me. If you want to make the files writable without using cvs, you're right that attrib -R isn't enough. You need to add a writable ACL to the file. Try: cacls afile.hpp /E /G %USERNAME%:W -- Eric Niebler Boost Consulting www.boost-consulting.com

Arkadiy Vertleyb wrote:
Hi All,
I am experiencing a strange problem with files checked out from the Boost CVS. The files are checked out as read-only, and even if I remove the read-only flag (attrib -R afile.hpp), I am not able to modify them -- access denied.
Does this ring any bell or does it sound like some glitch related to my PC?
Are you using "cvs edit afile.hpp" ? That works for me. If you want to make the files writable without using cvs, you're right that attrib -R isn't enough. You need to add a writable ACL to the file. Try: cacls afile.hpp /E /G %USERNAME%:W -- Eric Niebler Boost Consulting www.boost-consulting.com

"Eric Niebler" <eric@boost-consulting.com> wrote
Arkadiy Vertleyb wrote:
Hi All,
I am experiencing a strange problem with files checked out from the Boost CVS. The files are checked out as read-only, and even if I remove the read-only flag (attrib -R afile.hpp), I am not able to modify them -- access denied.
Does this ring any bell or does it sound like some glitch related to my PC?
Are you using "cvs edit afile.hpp" ? That works for me.
No, I wasn't aware of this CVS command -- All the times I used CVS before files were writable by default... I'll try this as soon as I am at my PC.
If you want to make the files writable without using cvs, you're right that attrib -R isn't enough. You need to add a writable ACL to the file. Try:
cacls afile.hpp /E /G %USERNAME%:W
Thanks a lot! Regards, Arkadiy

Arkadiy Vertleyb wrote:
"Eric Niebler" <eric@boost-consulting.com> wrote
Are you using "cvs edit afile.hpp" ? That works for me.
No, I wasn't aware of this CVS command -- All the times I used CVS before files were writable by default... I'll try this as soon as I am at my PC.
The boost cvs _should_ give you writable files by default if you do a checkout now. If this isn't the case somebody has messed with the repository in a way he shouldn't. Regards Thomas

FWIW I much prefer the previous systtem whereby all files were checked out readonly. I guess there's a switch in cvs somewhere to get the old behavior. Robert Ramey Thomas Witt wrote:
Arkadiy Vertleyb wrote:
"Eric Niebler" <eric@boost-consulting.com> wrote
Are you using "cvs edit afile.hpp" ? That works for me.
No, I wasn't aware of this CVS command -- All the times I used CVS before files were writable by default... I'll try this as soon as I am at my PC.
The boost cvs _should_ give you writable files by default if you do a checkout now. If this isn't the case somebody has messed with the repository in a way he shouldn't.
Regards

Robert Ramey wrote:
FWIW I much prefer the previous systtem whereby all files were checked out readonly.
Well as I said in my previous post on this topic, you are free to do that. The only difference is that now everybody has a choice. I guess there's a switch in cvs somewhere to get the old
behavior.
You can either put the specific cvs global option in your .cvrc file or set the CVSREADONLY environment variable. HTH Thomas

"Thomas Witt" <witt@acm.org> wrote
Arkadiy Vertleyb wrote:
"Eric Niebler" <eric@boost-consulting.com> wrote
Are you using "cvs edit afile.hpp" ? That works for me.
No, I wasn't aware of this CVS command -- All the times I used CVS before files were writable by default... I'll try this as soon as I am at my PC.
The boost cvs _should_ give you writable files by default if you do a checkout now. If this isn't the case somebody has messed with the repository in a way he shouldn't.
I am away from my PC right now, but I am pretty sure that, as of this morning, I was checking out read-only files. Regards, Arkadiy
participants (4)
-
Arkadiy Vertleyb
-
Eric Niebler
-
Robert Ramey
-
Thomas Witt