Browse code

cli_ftw: properly handle continue from callback, cid #10331

David Raynor authored on 2013/08/22 02:37:23
Showing 1 changed files
... ...
@@ -688,6 +688,7 @@ static int cli_ftw_dir(const char *dirname, int flags, int maxdepth, cli_ftw_cb
688 688
 		ret = callback(NULL, NULL, dirname, error_mem, data);
689 689
 		if (ret != CL_SUCCESS)
690 690
 		    break;
691
+		continue; /* have to skip this one if continuing after error */
691 692
 	    }
692 693
             if(!strcmp(dirname, PATHSEP))
693 694
 		sprintf(fname, PATHSEP"%s", dent->d_name);