Weird bug with cp -f

Dave Miles stack@freenet.co.uk
Mon Oct 4 23:10:00 GMT 2004


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'?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 60796 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20041004/5a5cab00/attachment.obj>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list