Commit 1ec51b45 1ec51b458b3ef20ec8f9b87a25b8cef2b51eefc5 by Sergey Poznyakoff

Minor fix

1 parent 3a5017a5
...@@ -346,16 +346,10 @@ list_helper (struct search_data *data, ...@@ -346,16 +346,10 @@ list_helper (struct search_data *data,
346 idata.next = ilist; 346 idata.next = ilist;
347 status = list_helper (data, gl.gl_pathv[i], level, &idata); 347 status = list_helper (data, gl.gl_pathv[i], level, &idata);
348 if (status) 348 if (status)
349 {
350 if (status == MU_ERR_NOENT
351 && !mu_list_is_empty (data->result))
352 status = 0;
353 else
354 break; 349 break;
355 } 350 }
356 } 351 }
357 } 352 }
358 }
359 globfree (&gl); 353 globfree (&gl);
360 } 354 }
361 else 355 else
...@@ -371,7 +365,10 @@ list_helper (struct search_data *data, ...@@ -371,7 +365,10 @@ list_helper (struct search_data *data,
371 break; 365 break;
372 366
373 case GLOB_NOMATCH: 367 case GLOB_NOMATCH:
368 if (mu_list_is_empty (data->result))
374 status = MU_ERR_NOENT; 369 status = MU_ERR_NOENT;
370 else
371 status = 0;
375 break; 372 break;
376 373
377 case GLOB_NOSYS: 374 case GLOB_NOSYS:
......