Wed 05 Jul 2006 10:22:22 AM UTC, original submission:
Test system
---------------------------------------
- Linux Red Hat AW 3
- ssh version : OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
- CVS version 1.12.9 (but the same happens for 1.12.13)
SETUP
---------------------------------------
Make a CVS repository on your workstation - here denoted
"myworkstation" - at e.g. /usr/local/CVSROOT and unpack the attached bad_cvs.tgz in the CVSROOT, i.e. you will get the sub-directory "petoft_test" under CVSROOT.
Ensure that you can use SSH as access "myworkstation" (test this by "ssh-agent tcsh + ssh-add + ssh myworkstation")
It can be noted that the CVSROOT can also be located on another server - it makes no difference to the test case.
Do these steps (the brachets show the command prompt)
[myworkstation - ~] setenv CVS_RSH ssh
[myworkstation - ~] mkdir tests
[myworkstation - ~] cvs -d /usr/local/CVSROOT co petoft_test
[myworkstation - ~] mv petoft_test petoft_test_local
[myworkstation - ~] cvs -d myworkstation:/usr/local/CVSROOT co petoft_test
[myworkstation - ~] mv petoft_test petoft_test_local
TEST1 - For the SSH access version
---------------------------------------
[myworkstation - petoft_test_SSH] md5sum test_file
77d336065f5737c7efb92475372579ad test_file
[myworkstation - petoft_test_SSH] cvs update -r TAG_v1_0 cvs update: Updating .
P test_file
cvs update: checksum failure after patch to ./test_file; will refetch
cvs client: refetching unpatchable files
cvs update: warning: `test_file' was lost
U test_file
[myworkstation - petoft_test_SSH] md5sum test_file
9c3c54c5e53c0afcf6aec5e027645b90 test_file
[myworkstation - petoft_test_SSH] cvs update -A test_file
P test_file
cvs update: checksum failure after patch to ./test_file; will refetch
cvs client: refetching unpatchable files
cvs update: warning: `test_file' was lost
U test_file
[myworkstation - petoft_test_SSH] md5sum test_file
77d336065f5737c7efb92475372579ad test_file
TEST2 - For the direct file access version
---------------------------------------
[myworkstation - petoft_test_local] md5sum test_file
77d336065f5737c7efb92475372579ad test_file
[myworkstation - petoft_test_local] cvs update -r TAG_v1_0 cvs update: Updating .
U test_file
[myworkstation - petoft_test_local] md5sum test_file
9c3c54c5e53c0afcf6aec5e027645b90 test_file
[myworkstation - petoft_test_local] cvs update -A test_file
U test_file
[myworkstation - petoft_test_local] md5sum test_file
77d336065f5737c7efb92475372579ad test_file
Conclusion
---------------------------------------
The two versions produce the same output files - the content
is ok, however using SSH as access bairer can lead to checksum
errors which the user cannot know how bad this is.
best regards
Peter Toft <pto@linuxbog.dk> http://pto.linux.dk
|