info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CHACL problem - why does CVS exist with code 0 when commit fails?


From: Karin Avramzon
Subject: CHACL problem - why does CVS exist with code 0 when commit fails?
Date: Tue, 22 Apr 2008 13:56:06 +0300

Hi,

 

I have set a “nowrite” permission to a file using CHACL.

I then tried to commit the changes in this file, via WinCvs client, and I expected the action to fail.

However, although the commit itself didn’t take place, the WinCvs client returned the following:

 

cvs server: User AAA is unable to write to ./ReadMe.txt - ignoring

***** CVS exited normally with code 0 *****

 

Why does CVS exist with code 0 and not with code 1?

How will the user know that the commit actually didn’t take place, if the returned error code is 0?

 

This is much more problematic when trying to commit files via Visual Studio, as then, since the returned error code is 0 – the action seem to have succeeded, although it didn’t, and there’s no visual indication to that.

 

 

A similar thing happens on ‘Update’, when there’s “noread” permission on the file.

However, and ‘Edit’ action does provide code 1, when it fails on ACL.

 

 

Am I doing something wrong?

Please advise.

 

Thanks,

Karin.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]