Author: jra Date: 2005-03-17 00:37:43 +0000 (Thu, 17 Mar 2005) New Revision: 5841
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5841 Log: Fix findfirst/findnext with protocol level < NT1. Jeremy. Modified: trunk/source/libsmb/clitrans.c Changeset: Modified: trunk/source/libsmb/clitrans.c =================================================================== --- trunk/source/libsmb/clitrans.c 2005-03-17 00:37:39 UTC (rev 5840) +++ trunk/source/libsmb/clitrans.c 2005-03-17 00:37:43 UTC (rev 5841) @@ -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; }