From: Jeremy Allison Date: Thu, 17 Mar 2005 00:37:39 +0000 (+0000) Subject: r5840: Fix findfirst/findnext with protocol level < NT1. X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5115 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d53b5891a7d372b3ed2488bac06939d29388f709;p=thirdparty%2Fsamba.git r5840: Fix findfirst/findnext with protocol level < NT1. Jeremy. --- diff --git a/source/libsmb/clitrans.c b/source/libsmb/clitrans.c index 3f1afa75d69..27da63ccdad 100644 --- a/source/libsmb/clitrans.c +++ b/source/libsmb/clitrans.c @@ -195,11 +195,12 @@ BOOL cli_receive_trans(struct cli_state *cli,int trans, /* * 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; }