diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2003-01-27 14:41:08 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2003-01-27 14:41:08 +0000 |
| commit | 0ba71e2424b3fe5d937c489d540d3f9b9879f833 (patch) | |
| tree | dc491258ca75ed275d0c557bf7b1e3466dd6e4f3 /libexec/ftpd | |
| parent | 4bfecf88f42a9c4f64b1fe6a7a828b3986ddbd7a (diff) | |
Notes
Diffstat (limited to 'libexec/ftpd')
| -rw-r--r-- | libexec/ftpd/ftpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 71fca60b2ccc..17597e0482e5 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1136,7 +1136,9 @@ checkuser(char *fname, char *name, int pwset, char **residue) * Save the rest of line to "residue" if matched */ if (found && residue) { - if ((p = strtok(NULL, "")) != NULL) { + if ((p = strtok(NULL, "")) != NULL) + p += strspn(p, " \t"); + if (p && *p) { if ((*residue = strdup(p)) == NULL) fatalerror("Ran out of memory."); } else |
