Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com> List-Archive: <http://sources.redhat.com/ml/cygwin/> List-Post: <mailto:cygwin AT cygwin DOT com> List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Sent: 15 Feb 2002 06:41:07 GMT Message-ID: <004601c1b5eb$bf171eb0$6400a8c0@JMG> From: "Jeff Greif" <jgreif AT alumni DOT princeton DOT edu> To: <cygwin AT cygwin DOT com> Cc: "Jeff Greif" <jgreif AT alumni DOT princeton DOT edu> Subject: cvs -- carriage return problems with cygwin 1.3.9 and interaction with setup's text file default Date: Thu, 14 Feb 2002 22:41:06 -0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0043_01C1B5A8.B0D9EE10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 ------=_NextPart_000_0043_01C1B5A8.B0D9EE10 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit After getting new Norton Antivirus virus definitions last night, NAV suddenly reported this morning that my old cygwin1.dll was infected with what appears to be a new trojan program, and aborted a cvs checkin I was doing to a remote server. This was almost certainly a false positive but I didn't figure that out until later. Being in a hurry, I started a download/install of the latest cygwin and went off for a couple of hours. When I got back, I went through the virus description in detail, a full virus scan etc (which found problems with various old cygwin1.dll files embedded in the .tar.gz packages for the old releases). As none of the expected symptoms of infection appeared, I decided the alarm was false, but now cvs didn't work. After a cosmic struggle, including running the debugger on cvs 1.11, it turns out that cvs was opening all its admin files, such as CVS/Root or CVS/Repository in text mode ("r" not "rb"), and stripping off '\n' and trailing spaces from the lines containing directories, but not '\r'. So when it sent its value of $CVSROOT, it sent something like ":ext:....../home/cvspub\r/CVSROOT" and lookups would fail. Something would be wrong with every directory reference concatenated out of information in these files as it walked the tree for any cvs command. By reinstalling cvs but specifying Default Text File Type = DOS in the main setup dialog, and making sure that binmode was not set in the CYGWIN environment variable, cvs now had the right behavior when it read its files. Clearly, the various cvs administrative files had been produced in DOS text mode using the earlier cygwin releases, but the new release, which I had originally installed without changing any default settings, apparently uses Unix mode by default. Apparently if you read a DOS text mode file in a DOS text mode environment, the '\r' characters automatically are removed before they reach the program buffer, but if you read such a file in Unix text mode, the '\r' characters are not treated specially. Has there been a recent change of this default? If so, its consequences should be pointed out to people who might be victimized in an upgrade. I think it would be useful to update the cygwin faq with some well-chosen advice about how to deal with DOS vs. Unix text file formats, particularly pointing out that some of the programs in the cygwin release will only work in DOS text mode if they were ever installed in DOS Text mode and wrote any files. It would also be helpful if there was a better explanation than what I've found so far about the meaning of this setting in the setup dialogs. What is actually changed by altering it? The first time I tried to fix the problem by starting setup, changing the setting from Unix text mode to DOS text mode, and continuing, I was told "There is nothing to install." I had to explicitly select cvs and specify Reinstall to cause a change. Presumably what I've done is partly bogus. I should reinstall everything with a consistent text mode setting, right, or some other programs will be broken similarly to the way cvs was? Jeff ------=_NextPart_000_0043_01C1B5A8.B0D9EE10 Content-Type: application/octet-stream; name="cygcheck.out" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygcheck.out" Cygwin Win95/NT Configuration Diagnostics Current System Time: Thu Feb 14 21:52:57 2002 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin c:\Tcl\bin c:\jdk1.3.1\bin c:\emacs-20.7\bin C:\cygwin\bin c:\WINNT\system32 c:\WINNT c:\WINNT\System32\Wbem c:\emacs-addons\gnuserv\Release c:\PROGRA~1\ATT\Graphviz\bin c:\jikes-1.15 c:\jdk1.3.1\bin c:\emacs-20.7\bin C:\cygwin\home\jgreif\bin c C:\cygwin\dbXML-Core-1.0b1\bin c:\Progra~1\ATT\Graphviz\bin c C:\cygwin\Progra~1\CormanTools\CormanLisp1.5 SysDir: C:\WINNT\System32 WinDir: C:\WINNT HOME =3D `C:\cygwin\home\jgreif' MAKE_MODE =3D `unix' PWD =3D `/home/jgreif' USER =3D `jgreif' ALLUSERSPROFILE =3D `C:\Documents and Settings\All Users' APPDATA =3D `C:\Documents and Settings\jgreif\Application Data' CLASSPATH =3D = `.;c:/webalo/cvs/proto/src/java;c:/webalo/cvs/proto/obj/release/classes;c= :/dbXML-Core-1.0b1/java/lib/dbXML.jar' COMMONPROGRAMFILES =3D `C:\Program Files\Common Files' COMPUTERNAME =3D `JMG' COMSPEC =3D `C:\WINNT\system32\cmd.exe' CORMANHOME =3D `c:/Progra~1/CormanTools/CormanLisp1.5' CVSROOT =3D `:ext:jgreif AT 64 DOT 70 DOT 48 DOT 190:/home/cvsroot' CVS_RSH =3D `ssh' DBXML_HOME =3D `c:/dbXML-Core-1.0b1' HOMEDRIVE =3D `C:' HOMEPATH =3D `\' JIKESPATH =3D = `.;c:/jdk1.3.1/jre/lib/rt.jar;c:/webalo/cvs/proto/src/java' LOGONSERVER =3D `\\JMG' MANPATH =3D `:/usr/ssl/man' NUMBER_OF_PROCESSORS =3D `1' OLDPWD =3D `c:/webalo/cvs/proto/src/java/com/webalo/repo' OS2LIBPATH =3D `C:\WINNT\system32\os2\dll;' OS =3D `Windows_NT' PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl' PROCESSOR_ARCHITECTURE =3D `x86' PROCESSOR_IDENTIFIER =3D `x86 Family 15 Model 0 Stepping 10, = GenuineIntel' PROCESSOR_LEVEL =3D `15' PROCESSOR_REVISION =3D `000a' PROGRAMFILES =3D `C:\Program Files' PROMPT =3D `$P$G' PROTO_HOME =3D `c:/webalo/cvs/proto' PS1 =3D `\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' REPOHOME =3D `c:/webalo/cvs/proto/src/java/com/webalo/repo' SHLVL =3D `2' SSH_AGENT_PID =3D `1324' SSH_AUTH_SOCK =3D `/tmp/ssh-heQP1276/agent.1276' SYSTEMDRIVE =3D `C:' SYSTEMROOT =3D `C:\WINNT' TEMP =3D `c:\DOCUME~1\jgreif\LOCALS~1\Temp' TERM =3D `cygwin' USERDOMAIN =3D `JMG' USERNAME =3D `jgreif' USERPROFILE =3D `C:\Documents and Settings\jgreif' WINDIR =3D `C:\WINNT' _ =3D `/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) =3D `/cygdrive' cygdrive flags =3D 0x00000020 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Menu= Order\Start Menu\Programs\Cygnus Solutions (default) =3D (unsupported type) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) =3D `C:/cygwin' flags =3D 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) =3D `C:/cygwin/bin' flags =3D 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) =3D `C:/cygwin/lib' flags =3D 0x00000008 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/A N/A =20 c: hd NTFS 38130Mb 13% CP CS UN PA FC =20 z: cd N/A N/A =20 . /cygdrive user textmode,noumount C:/cygwin / system textmode C:/cygwin/bin /usr/bin system textmode C:/cygwin/lib /usr/lib system textmode Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\find.exe Found: C:\cygwin\bin\gcc.exe Found: C:\cygwin\bin\gdb.exe Found: C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\sh.exe 56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygbz21.0.dll" v0.0 ts=3D2000/11/20 15:53 621k 2002/01/16 C:\cygwin\bin\cygcrypto.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygcrypto.dll" v0.0 ts=3D2002/1/16 1:54 35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygform6.dll" v0.0 ts=3D2002/1/8 22:03 18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cyggdbm.dll" v0.0 ts=3D2000/10/22 19:26 22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygintl-1.dll" v0.0 ts=3D2001/12/13 1:28 21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygintl.dll" v0.0 ts=3D2001/6/20 10:09 81k 2001/10/20 C:\cygwin\bin\cygitcl30.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygitcl30.dll" v0.0 ts=3D2001/10/19 17:25 35k 2001/10/20 C:\cygwin\bin\cygitk30.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygitk30.dll" v0.0 ts=3D2001/10/19 17:25 45k 2002/02/08 C:\cygwin\bin\cygjbig1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygjbig1.dll" v0.0 ts=3D2002/2/7 15:59 119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygjpeg6b.dll" v0.0 ts=3D2002/2/8 21:19 20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygmenu6.dll" v0.0 ts=3D2002/1/8 22:03 175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses++6.dll" v0.0 ts=3D2002/1/8 22:03 202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses6.dll" v0.0 ts=3D2002/1/8 22:03 12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpanel6.dll" v0.0 ts=3D2002/1/8 22:03 40k 2001/11/21 C:\cygwin\bin\cygpcre.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpcre.dll" v0.0 ts=3D2001/11/21 14:15 39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpcreposix.dll" v0.0 ts=3D2001/11/21 14:15 170k 2002/01/21 C:\cygwin\bin\cygpng2.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpng2.dll" v0.0 ts=3D2002/1/20 17:05 66k 2001/11/20 C:\cygwin\bin\cygregex.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygregex.dll" v0.0 ts=3D2001/11/20 6:44 156k 2002/01/16 C:\cygwin\bin\cygssl.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygssl.dll" v0.0 ts=3D2002/1/16 1:54 390k 2001/10/20 C:\cygwin\bin\cygtcl80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtcl80.dll" v0.0 ts=3D2001/10/19 17:24 5k 2001/10/20 C:\cygwin\bin\cygtclpip80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 10k 2001/10/20 C:\cygwin\bin\cygtclreg80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtclreg80.dll" v0.0 ts=3D2001/10/19 17:24 245k 2001/06/12 C:\cygwin\bin\cygtiff3.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtiff3.dll" v0.0 ts=3D2001/6/12 10:25 623k 2001/10/20 C:\cygwin\bin\cygtk80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtk80.dll" v0.0 ts=3D2001/10/19 17:25 41k 2002/01/20 C:\cygwin\bin\cygXpm-noX4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygXpm-noX4.dll" v0.0 ts=3D2002/1/20 10:49 46k 2002/01/20 C:\cygwin\bin\cygXpm-X4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygXpm-X4.dll" v0.0 ts=3D2002/1/20 10:50 50k 2002/01/20 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygz.dll" v0.0 ts=3D2002/1/20 11:41 751k 2002/01/21 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygwin1.dll" v0.0 ts=3D2002/1/21 9:48 Cygwin DLL version info: DLL version: 1.3.9 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 51 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix:=20 Build date: Mon Jan 21 12:48:41 EST 2002 Shared id: cygwin1S3 Cygwin Package Information Last downloaded files to: C:\Documents and Settings\jgreif\Desktop Last downloaded files from: = ftp://mirrors.rcn.net/mirrors/sources.redhat.com/cygwin Package Version =20 ash 20020131-1 =20 autoconf 2.52a-1 =20 autoconf-devel 2.52-4 =20 autoconf-stable 2.13-4 =20 automake 1.5b-1 =20 automake-devel 1.5-5 =20 automake-stable 1.4p5-5 =20 bash 2.05a-2 =20 bash-src 2.05a-2 =20 binutils 20011002-1 =20 bison 1.33-1 =20 byacc 1.9-1 =20 bzip2 1.0.1-6 =20 clear 1.0 =20 cpio 2.4.2 =20 cron 3.0.1-5 =20 crypt 1.0-1 =20 ctags 5.2-1 =20 cvs 1.11.0-1 =20 cvs-src 1.11.0-1 =20 cygrunsrv 0.94-2 =20 cygwin 1.3.9-1 =20 cygwin-src 1.3.9-1 =20 dejagnu 20010117-1 =20 diff 0.0 =20 ed 0.2-1 =20 expect 20010117-1 =20 file 3.37-1 =20 fileutils 4.1-1 =20 findutils 4.1 =20 flex 2.5.4-1 =20 gawk 3.0.4-1 =20 gcc 2.95.3-5 =20 gdb 20010428-3 =20 gdbm 1.8.0-3 =20 gettext 0.10.40-1 =20 ghostscript 6.51-1 =20 gperf 0.0 =20 grep 2.4.2-1 =20 groff 1.17.2-1 =20 gzip 1.3.2-1 =20 inetutils 1.3.2-17 =20 irc 20010101-1 =20 jbigkit 1.2-6 =20 jpeg 6b-7 =20 less 358-3 =20 libintl 0.10.38-3 =20 libintl1 0.10.40-1 =20 libncurses5 5.2-1 =20 libncurses6 5.2-8 =20 libpng 1.0.12-1 =20 libpng2 1.0.12-1 =20 libreadline4 4.1-2 =20 libreadline5 4.2a-1 =20 login 1.4-3 =20 lynx 2.8.4-1 =20 m4 0.0 =20 make 3.79.1-5 =20 man 1.5g-2 =20 mingw 20010424-1 =20 mktemp 1.4-1 =20 mt 2.0.1-1 =20 mutt 1.2.5i-6 =20 ncftp 3.0.2-2 =20 ncurses 5.2-8 =20 newlib-man 20001118-1 =20 opengl 1.1.0-5 =20 openssh 3.0.2p1-5 =20 openssh-src 3.0.2p1-5 =20 openssl 0.9.6c-3 =20 patch 2.5-2 =20 pcre 3.7-1 =20 perl 5.6.1-2 =20 popt 1.6.2-1 =20 postgresql 7.1.3-2 =20 python 2.2-1 =20 readline 4.2a-1 =20 regex 4.4-2 =20 rsync 2.5.2-1 =20 rxvt 2.7.2-9 =20 sed 3.02-1 =20 sh-utils 2.0-2 =20 squid 2.4-STABLE20010508 =20 ssmtp 2.38.7-3 =20 tar 1.13.19-1 =20 tcltk 20001125-1 =20 tcsh 6.11.00-3 =20 termcap 20010825-1 =20 terminfo 5.2-1 =20 tetex-beta 20001218-1 =20 texinfo 4.0-5 =20 textutils 2.0.16-1 =20 tiff 3.5.6beta-2 =20 time 1.7-1 =20 unzip 5.41-1 =20 vim 6.0.93-1 =20 w32api 1.2-1 =20 wget 1.8.1-1 =20 which 1.5-1 =20 xpm-nox 4.2.0-1 =20 zip 2.3-1 =20 zlib 1.1.3-7 =20 Use -h to see help about each section ------=_NextPart_000_0043_01C1B5A8.B0D9EE10 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_0043_01C1B5A8.B0D9EE10--