[git commit] ftpd: handle restarts past 2147483647 bytes. closes 10741

Denys Vlasenko vda.linux at googlemail.com
Mon Feb 5 18:06:40 UTC 2018


commit: https://git.busybox.net/busybox/commit/?id=5740e15de55baa343955196c641baeaec8a73b5c
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 networking/ftpd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/networking/ftpd.c b/networking/ftpd.c
index dd0fc4e92..8abbf7f57 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -603,7 +603,7 @@ static void
 handle_rest(void)
 {
 	/* When ftp_arg == NULL simply restart from beginning */
-	G.restart_pos = G.ftp_arg ? xatoi_positive(G.ftp_arg) : 0;
+	G.restart_pos = G.ftp_arg ? XATOOFF(G.ftp_arg) : 0;
 	WRITE_OK(FTP_RESTOK);
 }
 


More information about the busybox-cvs mailing list