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: wget -k downloading to shares fails with seemingly spurious "permission denied" error


Larry Hall (Cygwin) wrote:

> On 03/23/2009, Barry Kelly wrote:
> > $ wget -k google.com
> > 
> > This should download an index.html, then convert any relative links in
> > the html to absolute links. However, when I run it, I get output that
> > looks more like this:
> > 
> > $ wget -k google.com
> > # ...
> > Length: unspecified [text/html]
> > Saving to: `index.html'
> > 
> >      0K                                                       58.3K=0.1s
> > 
> > 2009-03-23 21:21:38 (58.3 KB/s) - `index.html' saved [6528]
> > 
> > Converting index.html... Unable to delete `index.html': Permission
> > denied
> > Converted 1 files in 0.02 seconds.
> 
> WFFM.  Got BLODA? <http://cygwin.com/acronyms/#BLODA>

It's a very clean (1 week old) 64-bit Windows Server 2008 machine.
Beyond Firefox 2.0 and utorrent, nothing is installed. No virus
checkers, no defragmenters, etc. I am running Process Explorer, but I
doubt that would be the cause.

I can also reproduce on my 32-bit WinXP Pro SP 3 machine.

The problem occurs with Samba shares, WinXP shares and Win2008 shares,
and from WinXP and Win2008.

I did another run with procmon active. The exact call that failed:

22:23:57.9023055	wget.exe	344
SetDispositionInformationFile	\\grendel\c\test\index.html	CANNOT
DELETE	Delete: True

As far as I can ascertain, 

Here's the stack at the time that DeleteFile failed (it's not a good
stack because I don't even have WinDbg installed):

0	fltmgr.sys	fltmgr.sys + 0x305a	0xfffffa6000ccb05a
C:\Windows\system32\drivers\fltmgr.sys
1	fltmgr.sys	fltmgr.sys + 0x26a2	0xfffffa6000cca6a2
C:\Windows\system32\drivers\fltmgr.sys
2	fltmgr.sys	fltmgr.sys + 0x10c5	0xfffffa6000cc90c5
C:\Windows\system32\drivers\fltmgr.sys
3	ntoskrnl.exe	ntoskrnl.exe + 0x2a40f6	0xfffff80001aba0f6
C:\Windows\system32\ntoskrnl.exe
4	ntoskrnl.exe	ntoskrnl.exe + 0x54df3	0xfffff8000186adf3
C:\Windows\system32\ntoskrnl.exe
5	ntdll.dll	ntdll.dll + 0x45cea	0x77195cea
C:\Windows\System32\ntdll.dll
6	wow64.dll	wow64.dll + 0x11d15	0x74ff1d15
C:\Windows\System32\wow64.dll
7	wow64.dll	wow64.dll + 0xa996	0x74fea996
C:\Windows\System32\wow64.dll
8	wow64cpu.dll	wow64cpu.dll + 0x3688	0x75423688
C:\Windows\System32\wow64cpu.dll
9	wow64.dll	wow64.dll + 0xab46	0x74feab46
C:\Windows\System32\wow64.dll
10	wow64.dll	wow64.dll + 0xa14c	0x74fea14c
C:\Windows\System32\wow64.dll
11	ntdll.dll	ntdll.dll + 0x352d3	0x771852d3
C:\Windows\System32\ntdll.dll
12	ntdll.dll	ntdll.dll + 0x35363	0x77185363
C:\Windows\System32\ntdll.dll
13	ntdll.dll	ntdll.dll + 0x285ce	0x771785ce
C:\Windows\System32\ntdll.dll
14	kernel32.dll	kernel32.dll + 0x1613f	0x7584613f
C:\Windows\SysWOW64\kernel32.dll

Here are the modules loaded into the wget process at the time of the
failure:

Description:	n/a
Company:	n/a
Name:	wget.exe
Version:	n/a
Path:	C:\cygwin\bin\wget.exe
Command Line:	C:\cygwin\bin\wget.exe -k google.com
PID:	344
Parent PID:	3416
Session ID:	2
User:	HROTHGAR\barrkel
Auth ID:	00000000:0006262b
Architecture:	32-bit
Virtualized:	False
Integrity:	High
Started:	23/03/2009 22:23:56
Ended:	23/03/2009 22:23:57
Modules:
wget.exe	0x400000	0x3c000	C:\cygwin\bin\wget.exe
cygwin1.dll	0x61000000	0x200000 C:\cygwin\bin\cygwin1.dll
cygssl-0.9.8.dll	0x63400000	0x3e000
C:\cygwin\bin\cygssl-0.9.8.dll
cygiconv-2.dll	0x674c0000	0xfa000	C:\cygwin\bin\cygiconv-2.dll
cygcrypto-0.9.8.dll	0x6ba40000	0x113000
C:\cygwin\bin\cygcrypto-0.9.8.dll
cygintl-8.dll	0x6f5c0000	0xd000	C:\cygwin\bin\cygintl-8.dll
wshqos.dll	0x72520000	0x6000	C:\Windows\SysWOW64\wshqos.dll
wship6.dll	0x73e80000	0x5000	C:\Windows\SysWOW64\wship6.dll
WSHTCPIP.DLL	0x73e90000	0x5000	C:\Windows\SysWOW64\WSHTCPIP.DLL
rasadhlp.dll	0x73ea0000	0x6000	C:\Windows\SysWOW64\rasadhlp.dll
wshqos.dll	0x74b20000	0x6000	C:\Windows\SysWOW64\wshqos.dll
dhcpcsvc6.dll	0x74b90000	0x21000
C:\Windows\SysWOW64\dhcpcsvc6.dll
dhcpcsvc.dll	0x74bc0000	0x35000	C:\Windows\SysWOW64\dhcpcsvc.dll
IPHLPAPI.DLL	0x74c00000	0x19000	C:\Windows\SysWOW64\IPHLPAPI.DLL
mswsock.dll	0x74c20000	0x3b000	C:\Windows\SysWOW64\mswsock.dll
NapiNSP.dll	0x74c60000	0xf000	C:\Windows\SysWOW64\NapiNSP.dll
dnsapi.dll	0x74c70000	0x2c000	C:\Windows\SysWOW64\dnsapi.dll
oleacc.dll	0x74ca0000	0x39000	C:\Windows\SysWOW64\oleacc.dll
wow64win.dll	0x74d10000	0x4e000	C:\Windows\System32\wow64win.dll
nlaapi.dll	0x74dc0000	0xf000	C:\Windows\SysWOW64\nlaapi.dll
winmm.dll	0x74fa0000	0x32000	C:\Windows\SysWOW64\winmm.dll
wow64.dll	0x74fe0000	0x45000	C:\Windows\System32\wow64.dll
winrnr.dll	0x753f0000	0x8000	C:\Windows\SysWOW64\winrnr.dll
winnsi.dll	0x75410000	0x7000	C:\Windows\SysWOW64\winnsi.dll
wow64cpu.dll	0x75420000	0x9000	C:\Windows\System32\wow64cpu.dll
nsi.dll	0x75500000	0x6000	C:\Windows\SysWOW64\nsi.dll
ws2_32.dll	0x75510000	0x2d000	C:\Windows\SysWOW64\ws2_32.dll
oleaut32.dll	0x75540000	0x8d000	C:\Windows\SysWOW64\oleaut32.dll
imm32.dll	0x755d0000	0x60000	C:\Windows\SysWOW64\imm32.dll
user32.dll	0x75760000	0xd0000	C:\Windows\SysWOW64\user32.dll
advapi32.dll	0x75940000	0xc6000	C:\Windows\SysWOW64\advapi32.dll
psapi.dll	0x75a10000	0x7000	C:\Windows\SysWOW64\psapi.dll
lpk.dll	0x75a20000	0x9000	C:\Windows\SysWOW64\lpk.dll
ole32.dll	0x75a30000	0x144000 C:\Windows\SysWOW64\ole32.dll
Wldap32.dll	0x75c10000	0x4a000	C:\Windows\SysWOW64\Wldap32.dll
msctf.dll	0x75e80000	0xc8000	C:\Windows\SysWOW64\msctf.dll
msvcrt.dll	0x76010000	0xaa000	C:\Windows\SysWOW64\msvcrt.dll
gdi32.dll	0x760c0000	0x90000	C:\Windows\SysWOW64\gdi32.dll
usp10.dll	0x76c60000	0x7d000	C:\Windows\SysWOW64\usp10.dll
user32.dll	0x76f50000	0xcd000	C:\Windows\System32\user32.dll
kernel32.dll	0x77020000	0x12b000
C:\Windows\System32\kernel32.dll
ntdll.dll	0x77150000	0x180000 C:\Windows\System32\ntdll.dll
ntdll.dll	0x772f0000	0x160000 C:\Windows\SysWOW64\ntdll.dll

-- Barry

-- 
http://barrkel.blogspot.com/

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