aboutsummaryrefslogtreecommitdiff
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2003-01-27 14:41:08 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2003-01-27 14:41:08 +0000
commit0ba71e2424b3fe5d937c489d540d3f9b9879f833 (patch)
treedc491258ca75ed275d0c557bf7b1e3466dd6e4f3 /libexec/ftpd
parent4bfecf88f42a9c4f64b1fe6a7a828b3986ddbd7a (diff)
Notes
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpd.c4
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