Mail Archives: cygwin/2009/03/23/16:29:02
I'm having a problem that doesn't seem to admit logical explanation,
apart from a bug in either wget, Cygwin or Windows' implementation of
SMB shares.
Assume the current directory is a UNC path to a share on another machine
(say, //foo/blah), with full permissions. Run the following command from
Cygwin bash:
$ 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=3D0.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.
I've done an strace:
67 1028672 [main] wget 2016 unlink: _unlink (\\foo\blah\baz)
3815 1032487 [main] wget 2016 seterrno_from_win_error:
/ext/build/netrel/src/cygwin-1.5.25-15/winsup/cygwin/syscalls.cc:269
windows error 5
110 1032597 [main] wget 2016 geterrno_from_win_error: windows error 5
=3D=3D errno 13
80 1032677 [main] wget 2016 __set_errno: void
seterrno_from_win_error(const char*, int, DWORD):310 val 13
80 1032757 [main] wget 2016 unlink: -1 =3D unlink (baz)
245 1033002 [main] wget 2016 sig_send: sendsig 0x150, pid 2016, signal
-34, its_me 1
88 1033090 [main] wget 2016 sig_send: wakeup 0x24C
81 1033171 [main] wget 2016 sig_send: Waiting for pack.wakeup 0x24C
4 1033175 [sig] wget 2016 wait_sig: signalling pack.wakeup 0x24C
98 1033273 [main] wget 2016 sig_send: returning 0x0 from sending
signal -34
84 1033357 [main] wget 2016 fhandler_base::write: binary write
Unable to delete ` 100 1033457 [main] wget 2016 sig_send: sendsig
0x150, pid 2016, signal -34, its_me 1
I can delete the downloaded files just fine using `unlink', and its
unlink call appears unmolested:
28 33813 [main] unlink 2684 unlink: _unlink (\\foo\blah\baz)
1347 35160 [main] unlink 2684 unlink: DeleteFile after
CreateFile/CloseHandle succeeded
47 35207 [main] unlink 2684 unlink: 0 =3D unlink (baz)
176 35383 [main] unlink 2684 close: close (1)
Can anyone else verify the problem? Can anything be done to fix it?
-- Barry
--=20
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/
- Raw text -