#18844: /bin/sh in some cases needed command prompt  more than 512 bytes
--------------------------+-----------------------------------
  Reporter:  umka@…       |      Owner:  developers
      Type:  defect       |     Status:  closed
  Priority:  high         |  Milestone:  Barrier Breaker 14.07
 Component:  base system  |    Version:  Trunk
Resolution:  too_vague    |   Keywords:  SHell
--------------------------+-----------------------------------

Comment (by bittorf@…):

 i think OP means BUSYBOX_DEFAULT_FEATURE_EDITING_MAX_LEN which defaults to
 512 bytes.
 when reading busybox/libbb/lineedit.c it seems this affects interactive
 sessions only:

 {{{
 /* Make a local copy of the string up to the position of the cursor.
          * build_match_prefix will expand it into int16_t's, need to
 allocate
          * twice as much as the string_len+1.
          * (we then also (ab)use this extra space later - see (**))
          */
 }}}

 the questions is, if scripts called via odhcpc (or similar) can eat input
 >512 bytes...

--
Ticket URL: <https://dev.openwrt.org/ticket/18844#comment:3>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to