=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/fetch.c,v retrieving revision 1.214 retrieving revision 1.215 diff -u -r1.214 -r1.215 --- src/usr.bin/ftp/fetch.c 2023/03/08 04:43:11 1.214 +++ src/usr.bin/ftp/fetch.c 2023/06/28 11:07:28 1.215 @@ -1,4 +1,4 @@ -/* $OpenBSD: fetch.c,v 1.214 2023/03/08 04:43:11 guenther Exp $ */ +/* $OpenBSD: fetch.c,v 1.215 2023/06/28 11:07:28 op Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- @@ -984,6 +984,7 @@ } else if (strncasecmp(cp, LAST_MODIFIED, sizeof(LAST_MODIFIED) - 1) == 0) { cp += sizeof(LAST_MODIFIED) - 1; + cp += strspn(cp, " \t"); cp[strcspn(cp, "\t")] = '\0'; if (strptime(cp, "%a, %d %h %Y %T %Z", &lmt) == NULL) server_timestamps = 0;