On Dec 17 01:33, Dave Korn wrote: > I think the strace suggests where the problem lies: > > > 350 519655 [main] bash 680 open: 3 = open (/tmp/sh-thd-1261038922, > > 0x10E01) > [ ... snip ... ] > > 517 535090 [main] bash 680 open: 4 = open (/tmp/sh-thd-1261038922, > > 0x10000) > > 454 535544 [main] bash 680 close: close (3) > > 476 536020 [main] bash 680 fhandler_base::close: closing > > '/tmp/sh-thd-1261038922' handle 0x6A4 > > 679 536699 [main] bash 680 close: 0 = close (3) > > 563 537262 [main] bash 680 normalize_posix_path: src > > /tmp/sh-thd-1261038922 > > 605 537867 [main] bash 680 normalize_posix_path: /tmp/sh-thd-1261038922 > > = normalize_posix_path (/tmp/sh-thd-1261038922) > > 449 538316 [main] bash 680 mount_info::conv_to_win32_path: > > conv_to_win32_path (/tmp/sh-thd-1261038922) > > 571 538887 [main] bash 680 set_flags: flags: binary (0x2) > > 806 539693 [main] bash 680 mount_info::conv_to_win32_path: src_path > > /tmp/sh-thd-1261038922, dst Z:\cygremotewin2\tmp\sh-thd-1261038922, flags > > 0x3000A, rc 0 > > 1641 541334 [main] bash 680 symlink_info::check: not a symlink > > 1003 542337 [main] bash 680 symlink_info::check: 0 = symlink.check > > (Z:\cygremotewin2\tmp\sh-thd-1261038922, 0x22B5E8) (0x3000A) > > 466 542803 [main] bash 680 path_conv::check: > > this->path(Z:\cygremotewin2\tmp\sh-thd-1261038922), has_acls(1) > > 547 543350 [main] bash 680 seterrno_from_win_error: > > /ext/build/netrel/src/cygwin-1.7.0-62/winsup/cygwin/syscalls.cc:674 windows > > error 32 > > 496 543846 [main] bash 680 geterrno_from_win_error: windows error 32 == > > errno 16 > > 449 544295 [main] bash 680 __set_errno: void > > seterrno_from_win_error(const char*, int, DWORD):319 val 16 > > 433 544728 [main] bash 680 unlink: -1 = unlink (/tmp/sh-thd-1261038922) > > 740 545468 [main] bash 680 close: close (4) > > 498 545966 [main] bash 680 fhandler_base::close: closing > > '/tmp/sh-thd-1261038922' handle 0x6A0 > > 1121 547087 [main] bash 680 close: 0 = close (4) > > It looks like the unlink-while-you-still-have-an-open-handle-to-the-file > trick isn't working on SMB mounts, perhaps?
Indeed. unlink-while-you-still-have-an-open-handle-to-the-file requires to be able to move the file to the recycle bin. The recycle bin does not exist on shares. So you get an EBUSY which is perfectly fine with POSIX. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat