Re[2]: setup.exe and inuse files for X

2002-05-16 Thread Pavel Tsekov
Hello Robert, Friday, May 03, 2002, 1:58:28 AM, you wrote: -Original Message- From: Corinna Vinschen [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 1:44 AM To: CygWin Apps; Cygwin-Xfree Subject: Re: setup.exe and inuse files for X On Wed, May 01, 2002 at 04:58:36PM

Re[3]: setup.exe and inuse files for X

2002-05-16 Thread Pavel Tsekov
[snip] PT Obviously the DELETE permission is missing. You call SetFileAttributes PT with ~FILE_ATTRIBUTE_READONLY which shoul enable the file for reading | deleting ---+ PT

RE: Re[2]: setup.exe and inuse files for X

2002-05-16 Thread Robert Collins
Does this work on FAT too? Rob -Original Message- From: Pavel Tsekov [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 6:33 PM Ok here is how to fix this issues I've just tried it on my XP Home and it worked fine. HANDLE h = CreateFile(test.c,

Re[4]: setup.exe and inuse files for X

2002-05-16 Thread Pavel Tsekov
Hello Robert, Thursday, May 16, 2002, 10:59:27 AM, you wrote: RC Does this work on FAT too? I don't know - its not clear from the documentation. Someone has to test it on FAT. However this combined with an an call to SetFileAttributes () before it should be sufficient. Btw the snippet below

Re[5]: setup.exe and inuse files for X

2002-05-16 Thread Pavel Tsekov
Ok, I've tested it on my WinXP Home on NTFS, FAT and FAT32. The following snippet removes the file no matter the filesystem (the Get/SetFileAttributes is required for FAT/FAT32 only): HANDLE hFile; DWORD dwAttr = GetFileAttributes (test.dat); SetFileAttributes (test.dat, dwAttr

RE: Re[5]: setup.exe and inuse files for X

2002-05-16 Thread Robert Collins
One thing I'm not clear on - are both calls -required-? -Original Message- From: Pavel Tsekov [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 8:52 PM To: Robert Collins Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re[5]: setup.exe and inuse files for X Ok, I've

RE: Re[5]: setup.exe and inuse files for X

2002-05-16 Thread Robert Collins
Oh, and can you please provide as a patch+ changelog? Cheers, Rob -Original Message- From: Pavel Tsekov [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 8:52 PM To: Robert Collins Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re[5]: setup.exe and inuse files for X

Re[7]: setup.exe and inuse files for X

2002-05-16 Thread Pavel Tsekov
No! Because I'm stupid... There is something else here. I got fooled. RC Oh, and can you please provide as a patch+ changelog?

Installation of X with setup.exe was Re[8]: setup.exe and inuse files for X

2002-05-16 Thread Pavel Tsekov
Ok, yesterday I've installed X with setup.exe and ended up with a lot of filename.new files under /usr/X11R6/ and some other dirs. I took a look at setup.log and saw this: 2002/05/15 11:26:13 Failed to open cygfile:///usr/X11R6/lib/X11/xman.help for wr iting. .. and many others like this.

RE: Installation of X with setup.exe was Re[8]: setup.exe and inuse files for X

2002-05-16 Thread Robert Collins
-Original Message- From: Pavel Tsekov [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 10:07 PM Sorry, for spamming the mail list :( It wasn't spam. I think that the NTFS changes may well be needed anyway... or are you saying that just tweaking the cygfile remove to have

Re[2]: Installation of X with setup.exe was Re[8]: setup.exe and inuse files for X

2002-05-16 Thread Pavel Tsekov
Hello Robert, Thursday, May 16, 2002, 2:11:37 PM, you wrote: -Original Message- From: Pavel Tsekov [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 10:07 PM Sorry, for spamming the mail list :( RC It wasn't spam. I think that the NTFS changes may well be needed RC

Re: setup.exe and inuse files for X

2002-05-02 Thread Corinna Vinschen
On Wed, May 01, 2002 at 04:58:36PM +1000, Robert Collins wrote: I think I've got a handle on this... looks like read only (-r--r--r--) files don't delete properly, so setup fails to overwrite them. Patches gratefully accepted, it's going in the TODO for now. I recall having sent a patch for

RE: setup.exe and inuse files for X

2002-05-02 Thread Robert Collins
-Original Message- From: Corinna Vinschen [mailto:[EMAIL PROTECTED]] Sent: Friday, May 03, 2002 1:44 AM To: CygWin Apps; Cygwin-Xfree Subject: Re: setup.exe and inuse files for X On Wed, May 01, 2002 at 04:58:36PM +1000, Robert Collins wrote: I think I've got a handle

setup.exe and inuse files for X

2002-05-01 Thread Robert Collins
I think I've got a handle on this... looks like read only (-r--r--r--) files don't delete properly, so setup fails to overwrite them. Patches gratefully accepted, it's going in the TODO for now. Rob