Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <573D34AAE716D4118C0A0050DAB6A92AA55609@athena.lanterncom.com> From: Alex Chen To: "'cygwin AT cygwin DOT com'" Subject: 1.1.8 'cp' command wipes out the source file (win2000) Date: Sat, 24 Mar 2001 13:23:16 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C0B4A8.A43E7B3C" ------_=_NextPart_000_01C0B4A8.A43E7B3C Content-Type: text/plain; charset="iso-8859-1" I downloaded the latest 'Cygwin' (I believe it is 1.1.8) package and discovered a very serious problem with the 'cp' command. I am using Windows 2000. When I try to copy a file from directory A to directory B under Win2000 command prompt window (Not under bash shell) with the 'cp' command: C:\A\subA>cd \B\subB C:\B\subB>cp \A\subA\Foo.java . cp: preserving permissions for ./\A\subA\Foo.java: No such file or directory When I check the file Foo.java in \A\subA, its size has been changed to '0' and the file is essentially wiped out. Fortunately I have made a backup copy so I put back the backup copy and set its attribute to 'read only' and do the operation again. This time I get a different error message: cp: cannot create regular file `./\A\subA\Foo.java': Permission denied If I change the destination from '.' to a file name Foo.java, or if I run the command under 'bash', then it seems to work I can accept the command failing if I use the wrong syntax. But it is disastrous to have the source file wiped out. _______________________________________ Alex Chen ------_=_NextPart_000_01C0B4A8.A43E7B3C Content-Type: application/octet-stream; name="cygcheck.out" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygcheck.out" Cygnus Win95/NT Configuration Diagnostics Current System Time: Sat Mar 24 13:20:56 2001 WinNT Ver 5.0 build 2195 Service Pack 1 Path: /cygdrive/c/Inprise/AppServer/bin /cygdrive/c/WINNT/system32 /cygdrive/c/WINNT /cygdrive/c/WINNT/System32/Wbem /cygdrive/c/Program Files/Perforce /cygdrive/c/vim57 /usr/bin /cygdrive/c/Program Files/Rational/common /cygdrive/c/JBuilder4/jdk1.3/bin /cygdrive/c/Program Files/Sybase/SQL Anywhere 7/win32 /cygdrive/c/Program Files/Sybase/Shared/win32 /cygdrive/c/Program Files/Sybase/Shared/Sybase Central 4.0/java /cygdrive/c/Program Files/Microsoft Visual Studio/Common/Tools/WinNT /cygdrive/c/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin /cygdrive/c/Program Files/Microsoft Visual Studio/Common/Tools /cygdrive/c/Program Files/Microsoft Visual Studio/VC98/bin SysDir: C:\WINNT\System32 WinDir: C:\WINNT HOME =3D `/home/administrator' !:: =3D `::\' !A: =3D `A:\' !C: =3D `C:\p4\rms\mpemulator' !EXITCODE =3D `00000000' !H: =3D `H:\' ALLUSERSPROFILE =3D `C:\Documents and Settings\All Users' APPDATA =3D `C:\Documents and Settings\achen\Application Data' COMMONPROGRAMFILES =3D `C:\Program Files\Common Files' COMPUTERNAME =3D `LANTERN239' COMSPEC =3D `C:\WINNT\system32\cmd.exe' HOMEDRIVE =3D `H:' HOMEPATH =3D `\' HOMESHARE =3D `\\xavier\achen' INCLUDE =3D `C:\Program Files\Microsoft Visual = Studio\VC98\atl\include;C:\Program Files\Microsoft Visual = Studio\VC98\mfc\include;C:\Program Files\Microsoft Visual = Studio\VC98\include' LIB =3D `C:\Program Files\Microsoft Visual = Studio\VC98\mfc\lib;C:\Program Files\Microsoft Visual Studio\VC98\lib' LOGONSERVER =3D `\\XAVIER' MSDEVDIR =3D `C:\Program Files\Microsoft Visual Studio\Common\MSDev98' NUMBER_OF_PROCESSORS =3D `1' OS =3D `Windows_NT' OS2LIBPATH =3D `C:\WINNT\system32\os2\dll;' PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE =3D `x86' PROCESSOR_IDENTIFIER =3D `x86 Family 6 Model 8 Stepping 6, = GenuineIntel' PROCESSOR_LEVEL =3D `6' PROCESSOR_REVISION =3D `0806' PROGRAMFILES =3D `C:\Program Files' PROMPT =3D `$P$G' SYSTEMDRIVE =3D `C:' SYSTEMROOT =3D `C:\WINNT' TEMP =3D `/cygdrive/c/DOCUME~1/achen/LOCALS~1/Temp' TMP =3D `/cygdrive/c/DOCUME~1/achen/LOCALS~1/Temp' USERDOMAIN =3D `LANTERN' USERNAME =3D `achen' USERPROFILE =3D `C:\Documents and Settings\achen' VIM =3D `C:\vim57' WINDIR =3D `C:\WINNT' TERM =3D `cygwin' TZ =3D `PST8PDT7,M4.1.0/2,M10.5.0/2' 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 0x00000022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Men= uOrder\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 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) =3D `C:/cygwin/bin' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) =3D `C:/cygwin/lib' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/A N/A =20 c: hd FAT32 19459Mb 25% CP UN =20 d: cd N/A N/A =20 e: net NTFS 9993Mb 98% CP CS UN PA FC data h: net NTFS 134748Mb 27% CP CS UN PA FC data C:\cygwin\bin /usr/bin system binmode C:\cygwin\lib /usr/lib system binmode C:\cygwin / system binmode 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 41k 2000/11/20 C:\cygwin\bin\cygXpm-noX4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygXpm-noX4.dll" v0.0 ts=3D2000/11/19 18:41 45k 2000/11/20 C:\cygwin\bin\cygXpm-X4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygXpm-X4.dll" v0.0 ts=3D2000/11/19 18:45 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 14k 2000/10/23 C:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygintl.dll" v0.0 ts=3D2000/10/23 12:02 45k 2000/10/22 C:\cygwin\bin\cygjbig1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygjbig1.dll" v0.0 ts=3D2000/10/22 16:06 119k 2000/10/23 C:\cygwin\bin\cygjpeg6b.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygjpeg6b.dll" v0.0 ts=3D2000/10/22 17:58 163k 2001/02/03 C:\cygwin\bin\cygpng2.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpng2.dll" v0.0 ts=3D2001/2/3 13:21 82k 2001/01/21 C:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygform5.dll" v0.0 ts=3D2001/1/21 12:39 53k 2001/01/21 C:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygmenu5.dll" v0.0 ts=3D2001/1/21 12:39 414k 2001/01/21 C:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses++5.dll" v0.0 ts=3D2001/1/21 12:40 299k 2001/01/21 C:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses5.dll" v0.0 ts=3D2001/1/21 12:38 34k 2001/01/21 C:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpanel5.dll" v0.0 ts=3D2001/1/21 12:38 17k 2001/01/07 C:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cyghistory4.dll" v0.0 ts=3D2001/1/6 20:34 108k 2001/01/07 C:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygreadline4.dll" v0.0 ts=3D2001/1/6 20:34 81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygitcl30.dll" v0.0 ts=3D2000/11/25 17:43 35k 2000/12/05 C:\cygwin\bin\cygitk30.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygitk30.dll" v0.0 ts=3D2000/11/25 17:43 390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtcl80.dll" v0.0 ts=3D2000/11/25 17:39 5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtclreg80.dll" v0.0 ts=3D2000/11/25 17:39 623k 2000/12/05 C:\cygwin\bin\cygtk80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtk80.dll" v0.0 ts=3D2000/11/25 17:43 243k 2000/10/23 C:\cygwin\bin\cygtiff3.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtiff3.dll" v0.0 ts=3D2000/10/22 18:14 49k 2001/02/03 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygz.dll" v0.0 ts=3D2001/2/3 12:35 615k 2001/01/31 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygwin1.dll" v0.0 ts=3D2001/1/31 7:08 Cygwin DLL version info: dll major: 1001 dll minor: 8 dll epoch: 19 dll bad signal mask: 19005 dll old termios: 5 dll malloc env: 28 api major: 0 api minor: 34 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: Wed Jan 31 10:08:38 EST 2001 shared id: cygwin1S3 Use -h to see help about each section ------_=_NextPart_000_01C0B4A8.A43E7B3C Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ------_=_NextPart_000_01C0B4A8.A43E7B3C--