with the Samba3.0.12 release i encountered the following problem : when i try to copy a file from a samba share to the local disk then the process hangs with the windows-message "Preparing to copy" (my translation from the german message). In a WIN98-DOS-Windows the copy command hangs too, but the file is created. The copying from my WIN-XP HOME works. My previous installed version 3.0.9 worked fine with the same configuration (smb.conf) does anyone have this problem too - and maybe a solution except reinstalling old samba ? Greetings Jens
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jens Wulf wrote: | with the Samba3.0.12 release i encountered the following | problem : when i try to copy a file from a samba | share to the local disk then the process hangs with | the windows-message "Preparing to copy" (my translation | from the german message). In a WIN98-DOS-Windows the | copy command hangs too, but the file is created. | The copying from my WIN-XP HOME works. | My previous installed version 3.0.9 worked fine with | the same configuration (smb.conf) | | does anyone have this problem too - and maybe a | solution except reinstalling old samba ? I've been able to reproduce this. Looks like eitehr (a) we stumbled on a Win98 bug, or (b) more probably we stuffed the trans2FindNext response. See https://bugzilla.samba.org/show_bug.cgi?id=2501 for the actual bug report. We'll have a patch out later today. cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCPs60IR7qMdg1EfYRAhBuAJ4zKn+B6H9gwN/PffQUttNAlxRUJgCeNNxp NZVMwT0HpbNouEO+P4vUvDE=44cj -----END PGP SIGNATURE-----
On Mon, Mar 21, 2005 at 02:01:17PM +0100, Jens Wulf wrote:> with the Samba3.0.12 release i encountered the following problem : > when i try to copy a file from a samba share to the local disk then the > process hangs with the windows-message > "Preparing to copy" (my translation from the german message). > In a WIN98-DOS-Windows the copy command hangs too, but the file is created. > The copying from my WIN-XP HOME works. > My previous installed version 3.0.9 worked fine with the same configuration > (smb.conf) > > does anyone have this problem too - and maybe a solution except > reinstalling old samba ?Ok, I screwed up bigtime :-(. This one is my fault. I've attached my proposed patch but more testing would be welcome. We'll probably have to do a brown-paper-bag 3.0.13 over this one :-(. Sorry. Jeremy. -------------- next part -------------- Index: smbd/dir.c ==================================================================--- smbd/dir.c (revision 5921) +++ smbd/dir.c (working copy) @@ -595,6 +595,13 @@ BOOL dptr_SearchDir(struct dptr_struct *dptr, const char *name, long *poffset, SMB_STRUCT_STAT *pst) { ZERO_STRUCTP(pst); + + if (!dptr->has_wild && (dptr->dir_hnd->offset == -1)) { + /* This is a singleton directory and we're already at the end. */ + *poffset = -1; + return False; + } + while (SearchDir(dptr->dir_hnd, name, poffset) == True) { if (is_visible_file(dptr->conn, dptr->path, name, pst, True)) { return True;
On Mon, 2005-03-21 at 14:01 +0100, Jens Wulf wrote:> with the Samba3.0.12 release i encountered the following problem : > when i try to copy a file from a samba share to the local disk then the > process hangs with the windows-message > "Preparing to copy" (my translation from the german message). > In a WIN98-DOS-Windows the copy command hangs too, but the file is created. > The copying from my WIN-XP HOME works. > My previous installed version 3.0.9 worked fine with the same configuration > (smb.conf) > > does anyone have this problem too - and maybe a solution except reinstalling > old samba ?Hahahaha... I have also been experiencing this too. Break open a DOS Prompt, try to copy a file from the SAMBA server to the local machine. it always asks if you wanna overwrite the file. The file didna exist before the copy, but completely loops through a transfer. If you hit ALL (Yes, No, All) your network falls overs. Literally. Nice one Jeremy! Oh, BTW any DB you try to open never does either. -- greg, greg@gregfolkert.net The technology that is Stronger, better, faster: Linux -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.samba.org/archive/samba/attachments/20050321/272cc9a5/attachment.bin
Maybe Matching Threads
- Re: Problems with Excel & MS Word files (EVEN - still ANY ideas?)
- user's smbd process generates high cpu utilization
- Re: Problems with Excel & MS Word files (EVEN - still ANY ideas?)
- Re: Problems with Excel & MS Word files (EVEN - still ANY ideas?)
- migrating samba 2.2.8a PDC to 3.0.12 SID problem