[cvsnt] cvs chown creates malformed fileattr.xml

Mike Wake mike.wake at thales-tts.com
Tue Nov 16 13:40:19 GMT 2004


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Hi Tony,

Does this help zoom in on the problem?

In chown.cpp:chown_dirproc() the directory owner is set like this.
    fileattr_setvalue(NULL,"directory/owner",chown_user);

Whereas in perms.cpp:change_owner() the directory owner is set like this.
    fileattr_setvalue(fileattr_create(NULL,"directory/owner"),NULL,user);

The XmlApi lib would need alot more study to figure out if the problem 
is in there or is just in the way it is used.

Cheers
Mikew.

Mike Wake wrote:
> Hi all,
> 
> Issuing
> cvs chown mwake
> using cvsnt-2.0.58d
> 
> from within a sandbox containing the CVSROOT directory results in a 
> malformed fileattr.xml.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <fileattr>
>   <directory>
>     <acl user="mwake">
>       <control />
>       <create />
>       <read />
>       <tag />
>       <write />
>     </acl>
>   </directory>
>   <directory/owner>mwake</directory/owner>
> </fileattr>
> 
> cvs lsacl results in the following output
> 
> cvs lsacl: warning: unrecognized response `Error in xml_read: not 
> well-formed (invalid token) at line 11' from cvs server
> cvs lsacl: warning: unrecognized response `Error in xml_read: not 
> well-formed (invalid token) at line 11' from cvs server
> cvs lsacl: warning: unrecognized response `Error in xml_read: not 
> well-formed (invalid token) at line 11' from cvs server
> cvs [server aborted]: Malformed fileattr.xml file in /Blah/CVSROOT/CVS. 
>  Please fix or delete this file
> 
> Cheers
> Mikew
> _______________________________________________
> cvsnt mailing list
> cvsnt at cvsnt.org cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook