link(existing_file_1,existing_file_2) return 0 and actually doing the link

Egor Duda
Wed Aug 30 23:02:00 GMT 2000


Thursday, 31 August, 2000 Chris Faylor wrote:

>>  link(existing_file_1,existing_file_2) returns 0 and actually doing
>>  the link, but should not.

CF> Couldn't you achieve the same effect here by just testing that the value
CF> of real_b.get_win32.file_attributes () == (DWORD)-1 ?

i'm  checking  if it's possible to create new directory entry. imagine
we have writable-only directory c:\test and trying to


it  will  fail  even  if  c:\test\test.tst  doesn't  exist  and can be
created.  using  GetFileAttributes requires analysis of returned error
code,   and   i'm  not sure i can outline the set of error codes which
indicate we should still try to create link.

Egor.   ICQ 5165414 FidoNet 2:5020/496.19

More information about the Cygwin-patches mailing list