diff options
author | 1999-09-22 05:00:46 +0000 | |
---|---|---|
committer | 1999-09-22 05:00:46 +0000 | |
commit | 2f263669eb49b2e6a6447f3142b367bafb5406a2 (patch) | |
tree | caa12f74b103ed4cf8c3a6a4e2c9fba30e31228c | |
parent | s/ascii/ASCII/ (diff) | |
download | wireguard-openbsd-2f263669eb49b2e6a6447f3142b367bafb5406a2.tar.xz wireguard-openbsd-2f263669eb49b2e6a6447f3142b367bafb5406a2.zip |
correct oob handling for STAT command; ian@plutotech.com
-rw-r--r-- | libexec/ftpd/ftpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index d1370616f23..6b9701ba32d 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.56 1999/07/21 00:05:47 deraadt Exp $ */ +/* $OpenBSD: ftpd.c,v 1.57 1999/09/22 05:00:46 deraadt Exp $ */ /* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ /* @@ -1848,6 +1848,7 @@ myoob(signo) longjmp(urgcatch, 1); } if (strcmp(cp, "STAT\r\n") == 0) { + tmpline[0] = '\0'; if (file_size != (off_t) -1) reply(213, "Status: %qd of %qd bytes transferred", byte_count, file_size); |