Subject: Re: Weird bug with cp -f
From: Dave Miles <[email-masked]>
To: [email-masked]
Date: Tue, 05 Oct 2004 00:10:34 +0100

Christopher Faylor wrote:

> On Sun, Oct 03, 2004 at 12:03:42AM -0400, Christopher Faylor wrote:
> >Works just fine for me.
> >
> >(WJJFM?)
> 
> Try again:  WJFFM.
> 
> cgf
> 

But has not worked for me for some time on Win2K.

Have tried clean install of cygwin and applied latest updates to Win2K
Professional. I've attached the output of 'cygcheck -s -v -r'.

The version of cygwin I've used works fine on WinXp and on Win2K server
under VmWare on the host PC where 'cp' fails.

Following session snippet illustrates the problem:

  Administrator@stack01 ~
  $ ls -l
  total 0

  Administrator@stack01 ~
  $ cygcheck -s -v -r > cygcheck.out
  cygcheck: dump_sysinfo: GetVolumeInformation() failed: 87

  Administrator@stack01 ~
  $ ls -l
  total 60
  -rw-r--r--    1 Administ None        60796 Oct  4 22:35 cygcheck.out

  Administrator@stack01 ~
  $ cp cygcheck.out cygcheck.out.0

  Administrator@stack01 ~
  $ ls -l
  total 120
  -rw-r--r--    1 Administ None        60796 Oct  4 22:35 cygcheck.out
  -rw-r--r--    1 Administ None        60796 Oct  4 22:35 cygcheck.out.0

  Administrator@stack01 ~
  $ cp cygcheck.out cygcheck.out.0
  cp: writing `cygcheck.out.0': Invalid request code

  Administrator@stack01 ~
  $ ls -l
  total 60
  -rw-r--r--    1 Administ None        60796 Oct  4 22:35 cygcheck.out
  drwxrwxrwx+   2 Administ None            0 Oct  4 22:35 cygcheck.out.0

  Administrator@stack01 ~
  $ rmdir cygcheck.out.0

  Administrator@stack01 ~
  $ cp cygcheck.out cygcheck.out.0

  Administrator@stack01 ~
  $ ls -l
  total 120
  -rw-r--r--    1 Administ None        60796 Oct  4 22:35 cygcheck.out
  -rw-r--r--    1 Administ None        60796 Oct  4 22:52 cygcheck.out.0

  Administrator@stack01 ~
  $ cp -f cygcheck.out cygcheck.out.0
  cp: writing `cygcheck.out.0': Invalid request code

  Administrator@stack01 ~
  $ ls -l
  total 60
  -rw-r--r--    1 Administ None        60796 Oct  4 22:35 cygcheck.out
  drwxrwxrwx+   2 Administ None            0 Oct  4 22:52 cygcheck.out.0

What to do now apart from 'rm' prior to 'cp'?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/