Author: jra Date: 2005-03-17 00:37:39 +0000 (Thu, 17 Mar 2005) New Revision: 5840
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5840 Log: Fix findfirst/findnext with protocol level < NT1. Jeremy. Modified: branches/SAMBA_3_0/source/libsmb/clitrans.c Changeset: Modified: branches/SAMBA_3_0/source/libsmb/clitrans.c =================================================================== --- branches/SAMBA_3_0/source/libsmb/clitrans.c 2005-03-17 00:33:56 UTC (rev 5839) +++ branches/SAMBA_3_0/source/libsmb/clitrans.c 2005-03-17 00:37:39 UTC (rev 5840) @@ -195,11 +195,12 @@ /* * An NT RPC pipe call can return ERRDOS, ERRmoredata * to a trans call. This is not an error and should not - * be treated as such. + * be treated as such. Note that STATUS_NO_MORE_FILES is + * returned when a trans2 findfirst/next finishes. */ status = cli_nt_error(cli); - if (NT_STATUS_IS_ERR(status)) { + if (NT_STATUS_IS_ERR(status) || NT_STATUS_EQUAL(status,STATUS_NO_MORE_FILES)) { cli_signing_trans_stop(cli); return False; }