This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: CVS file permissions
Gary Thomas wrote:
As for the change in behaviour - it's definitely there. I have a local
copy of the CVS repository (copied via 'rsync'). Up until today (the
first I noticed), files that I checked out locally have my umask based
permissions (rw-r--r--). Today, if I check out files, I get r--r--r--,
no matter what. This also applies to any files updated via 'cvs update'
I see what you mean now.
It took me a while but I found it. It's something to do with the
CVS/fileattr files within the repository itself. They contained something
like:
/cvs/ecos/./ecos-opt/snmp/lib/current/src/CVS/fileattr:Fasn1.c
_head=1.3;_expand=;_watched=
/cvs/ecos/./ecos-opt/snmp/lib/current/src/CVS/fileattr:Fcallback.c
_head=1.3;_expand=;_watched=
/cvs/ecos/./ecos-opt/snmp/lib/current/src/CVS/fileattr:Fdefault_store.c
_head=1.3;_expand=;_watched=
Note the "_watched=" at the end. At first I didn't think anything of it
because the string was empty, but it turns out that without that _watched=
bit it works.
This appears to happen if anyone, including someone with just an anonymous
checkout, uses "cvs watch on", even without specifying any action.
So in future if anyone needs to fix this again, log into
ecos.sourceware.org and go:
cd /cvs/ecos
find . -path \*/CVS/fileattr -exec rm {} \;
Needless to say extreme care should be taken typing this :-).
The fileattr files are merely a cache, so removing them is fine - they'll
be recreated automatically when needed. A bummer for anyone who actually
wants to use watches admittedly.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine