diff options
| author | Andrew Tridgell <tridge@samba.org> | 2001-06-22 10:16:04 +0000 |
|---|---|---|
| committer | Andrew Tridgell <tridge@samba.org> | 2001-06-22 10:16:04 +0000 |
| commit | 5d78a10232490229a5e157bf8e87b96404e6a8fd (patch) | |
| tree | c3701fc96489d9c432a73662685c728591a11abe /authenticate.c | |
| parent | 4d66e00afac22e5e0f3ba908bbdbabec6dd80e37 (diff) | |
| download | android_external_rsync-5d78a10232490229a5e157bf8e87b96404e6a8fd.tar.gz android_external_rsync-5d78a10232490229a5e157bf8e87b96404e6a8fd.tar.bz2 android_external_rsync-5d78a10232490229a5e157bf8e87b96404e6a8fd.zip | |
allow shell wildcards in auth users lines
Diffstat (limited to 'authenticate.c')
| -rw-r--r-- | authenticate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/authenticate.c b/authenticate.c index 9aae72d3..40582201 100644 --- a/authenticate.c +++ b/authenticate.c @@ -234,12 +234,12 @@ char *auth_server(int fd, int module, char *addr, char *leader) if (sscanf(line,"%99s %29s", user, pass) != 2) { return NULL; } - + users = strdup(users); if (!users) return NULL; for (tok=strtok(users," ,\t"); tok; tok = strtok(NULL," ,\t")) { - if (strcmp(tok, user) == 0) break; + if (fnmatch(tok, user, 0) == 0) break; } free(users); |
