Allow more than one separator character between fields in ftpchroot(5).

This commit is contained in:
yar 2003-01-27 14:41:08 +00:00
parent c11acfe3b7
commit 704ec7b02a

View File

@ -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