This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Weird bug with cp -f


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'?

Attachment: cygcheck.out
Description: Binary data

--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]