| 48 | */ |
| 49 | |
| 50 | int |
| 51 | login_strinlist(const char **list, char const *str, int flags) |
| 52 | { |
| 53 | int rc = 0; |
| 54 | |
| 55 | if (str != NULL && *str != '\0') { |
| 56 | int i = 0; |
| 57 | |
| 58 | while (rc == 0 && list[i] != NULL) |
| 59 | rc = fnmatch(list[i++], str, flags) == 0; |
| 60 | } |
| 61 | return rc; |
| 62 | } |
| 63 | |
| 64 | |
| 65 | /* |
no test coverage detected