[Samba] Samba client doesn't work SMB2 with MAC 0S 10.9.5

Tompkins, Michael Michael.Tompkins at xerox.com
Thu Oct 30 05:28:52 MDT 2014


We send a "cd <dir>; rm <file>" command. As part of cmd_del() function, it calls do_list(), which calls cli_list(), which calls smb2cli_list(), which calls smb2cli_query_directory() which either gets the status STATUS_NO_MORE_FILES or NT_STATUS_NO_SUCH_FILE(MAC 0S 10.9.5). 

- Mike
 
                           


-----Original Message-----
From: Jeremy Allison [mailto:jra at samba.org] 
Sent: Thursday, October 30, 2014 12:11 AM
To: Tompkins, Michael
Cc: Jeremy Allison; samba at lists.samba.org; USA Xerox Samba
Subject: Re: [Samba] Samba client doesn't work SMB2 with MAC 0S 10.9.5

On Fri, Oct 24, 2014 at 03:28:21PM +0000, Tompkins, Michael wrote:
> Need to get confirmation that my fix for 3.6.5, will not cause other issues...  See below...
> 
> Also my changes to 4.0.7, I needed to add the check "||NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_FILE) " in source3/libsmb/smb2cli_fnum.c:
> 
> smb2cli_list():
> if (!NT_STATUS_IS_OK(status)) {
>                         if (NT_STATUS_EQUAL(status, STATUS_NO_MORE_FILES) ||
>                                 NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_FILE) ) {
>                                 break;
>                         }
>                         goto fail;
>                 }
> 
> And
> 
>         if (NT_STATUS_EQUAL(status, STATUS_NO_MORE_FILES) ||
>                 NT_STATUS_EQUAL(status, NT_STATUS_NO_SUCH_FILE) ) {
>                 status = NT_STATUS_OK;
>         }
> 
> Because the MAC 10.9.5 server returns back NT_STATUS_NO_SUCH_FILE and window servers reply back STATUS_NO_MORE_FILES.

What path name are you using for the
directory listing here ?


More information about the samba mailing list