aboutsummaryrefslogtreecommitdiff
path: root/miscutils/rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/rx.c')
-rw-r--r--miscutils/rx.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/miscutils/rx.c b/miscutils/rx.c
index 1dffb593a..660f66a89 100644
--- a/miscutils/rx.c
+++ b/miscutils/rx.c
@@ -14,6 +14,16 @@
14 * 14 *
15 * This was originally written for blob and then adapted for busybox. 15 * This was originally written for blob and then adapted for busybox.
16 */ 16 */
17//config:config RX
18//config: bool "rx"
19//config: default y
20//config: select PLATFORM_LINUX
21//config: help
22//config: Receive files using the Xmodem protocol.
23
24//applet:IF_RX(APPLET(rx, BB_DIR_USR_BIN, BB_SUID_DROP))
25
26//kbuild:lib-$(CONFIG_RX) += rx.o
17 27
18//usage:#define rx_trivial_usage 28//usage:#define rx_trivial_usage
19//usage: "FILE" 29//usage: "FILE"
@@ -101,7 +111,7 @@ static int receive(/*int read_fd, */int file_fd)
101 && blockBuf[blockLength - 3] == PAD 111 && blockBuf[blockLength - 3] == PAD
102 ) { 112 ) {
103 while (blockLength 113 while (blockLength
104 && blockBuf[blockLength - 1] == PAD 114 && blockBuf[blockLength - 1] == PAD
105 ) { 115 ) {
106 blockLength--; 116 blockLength--;
107 } 117 }