Minor fix
Showing
1 changed file
with
5 additions
and
8 deletions
... | @@ -346,13 +346,7 @@ list_helper (struct search_data *data, | ... | @@ -346,13 +346,7 @@ 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 | { | 349 | break; |
350 | if (status == MU_ERR_NOENT | ||
351 | && !mu_list_is_empty (data->result)) | ||
352 | status = 0; | ||
353 | else | ||
354 | break; | ||
355 | } | ||
356 | } | 350 | } |
357 | } | 351 | } |
358 | } | 352 | } |
... | @@ -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: |
374 | status = MU_ERR_NOENT; | 368 | if (mu_list_is_empty (data->result)) |
369 | status = MU_ERR_NOENT; | ||
370 | else | ||
371 | status = 0; | ||
375 | break; | 372 | break; |
376 | 373 | ||
377 | case GLOB_NOSYS: | 374 | case GLOB_NOSYS: | ... | ... |
-
Please register or sign in to post a comment