From 3fc141baace52635dd5757f6b9d997c37f87deca Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 17 Mar 2005 00:37:39 +0000 Subject: r5840: Fix findfirst/findnext with protocol level < NT1. Jeremy. (This used to be commit d53b5891a7d372b3ed2488bac06939d29388f709) --- source3/libsmb/clitrans.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/libsmb/clitrans.c') diff --git a/source3/libsmb/clitrans.c b/source3/libsmb/clitrans.c index 3f1afa75d6..27da63ccda 100644 --- a/source3/libsmb/clitrans.c +++ b/source3/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; } -- cgit