Bug 10741 - ftpd lacks LFS
Summary: ftpd lacks LFS
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Networking (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-04 17:49 UTC by pash
Modified: 2018-02-05 18:07 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!