>Submitter-Id: net
>Originator: Ian Darwin
Ian Darwin
>Organization:
net
>Confidential: no
>Synopsis: UNIX version doesn't handle ^M in Entries/Repository if DOS ver used
>Severity: non-critical
>Priority: low
>Category: portability
>Class: sw-bug
>Release: cvs-1.10.7
>Environment:
See System:
System: OpenBSD darian 2.6 DARIAN#47 i386
>Description:
If you have a shared filesystem that is sometimes accessed by the
Win32 version and sometimes under UNIX, the UNIX version barfs
because the DOS version leaves ^M cookies at the end of each line
in CVS/Entries, CVS/Repository, CVS/Root, etc AND because the
UNIX line-reading code isn't aggressive enough about portability
to strip out trailing ^M's.
>How-To-Repeat:
Do a commit under the Win32/DOS version
Then try to do it again under UNIX, in the same shared filesystem
>Fix:
Use a readling library that handles portabilities, or hard-code
the code to strip trailing ^M's from lines.