diff options
-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 71fca60..17597e0 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 |