Bug 10741

Summary: ftpd lacks LFS
Product: Busybox Reporter: pash <12f8219>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description pash 2018-02-04 17:49:04 UTC
number 3564754712 is not in 0..2147483647 range
write error: Broken pipe
451 Error


--- o/networking/ftpd.c 2018-01-24 21:06:49.656307468 +0200
+++ busybox-9999/networking/ftpd.c  2018-01-24 21:09:39.216894809 +0200
@@ -599,7 +599,7 @@
 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);
 }
Comment 1 Denys Vlasenko 2018-02-05 18:07:38 UTC
Applied, thanks!