1. 13 Feb, 2016 2 commits
  2. 11 Feb, 2016 2 commits
  3. 10 Feb, 2016 2 commits
  4. 01 Feb, 2016 3 commits
    • Felix Fietkau's avatar
      busybox: fix uninitialized memory when displaying IPv6 addresses · f2c043ac
      Felix Fietkau authored
      After commit 8e74adab
      
      
      ("libbb: make INET[6]_rresolve use sockaddr2{host,dotted}_noport")
      INET_sprint6 uses more than just sin6_addr, it also tries to display the
      scope id, which is uninitialized when called from ife_print6.
      Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
      Signed-off-by: default avatarDenys Vlasenko <vda.linux@googlemail.com>
      f2c043ac
    • Rafał Miłecki's avatar
      dd: support iflag=skip_bytes · c30a5b13
      Rafał Miłecki authored
      
      
      It allows specifying amount of bytes directly (not only amount of
      blocks) is also supported by GNU's Coreutils.
      
      function                                             old     new   delta
      parse_comma_flags                                      -      93     +93
      static.iflag_words                                     -      12     +12
      dd_main                                             1569    1580     +11
      packed_usage                                       30591   30600      +9
      ------------------------------------------------------------------------------
      (add/remove: 2/0 grow/shrink: 2/0 up/down: 125/0)             Total: 125 bytes
      Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
      Signed-off-by: default avatarDenys Vlasenko <vda.linux@googlemail.com>
      c30a5b13
    • Kylie McClain's avatar
      Fix compiling with musl's utmp stubs · 40eea690
      Kylie McClain authored
      
      
      This patch fixes compiling busybox with FEATURE_UTMP and _WTMP enabled.
      musl, while not really support utmp/wtmp, provides stub functions, as well
      as variables such as _PATH_UTMP, so that programs using utmp or wtmp can
      still compile fine.
      
      My reasoning for this patch is that on Exherbo, I'm currently trying to get
      us to be able to use the same busybox config file for both glibc and musl
      systems, using utmp/wtmp on systems that support it, and using the stubs
      on musl without needing two different configs.
      
      As of latest musl git, it provides all utmp functions needed; 1.1.12 doesn't,
      but I sent a patch to Rich to add the utmp{,x}name functions expected to
      exist, which was merged into musl upstream.
      Signed-off-by: default avatarKylie McClain <somasissounds@gmail.com>
      Signed-off-by: default avatarDenys Vlasenko <vda.linux@googlemail.com>
      40eea690
  5. 31 Jan, 2016 1 commit
  6. 24 Jan, 2016 1 commit
  7. 23 Jan, 2016 1 commit
  8. 17 Jan, 2016 2 commits
  9. 13 Jan, 2016 2 commits
    • Mike Frysinger's avatar
      truncate: use O_WRONLY|O_NONBLOCK · 6a70db85
      Mike Frysinger authored
      
      
      This matches coreutils behavior.  We don't read the fd, and truncation
      does not need blocking.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      6a70db85
    • Ari Sundholm's avatar
      truncate: always set mode when opening file to avoid fortify errors · e111a164
      Ari Sundholm authored
      Busybox crashes due to no mode being given when opening:
      $ ./busybox truncate -s 1M foo
      *** invalid open64 call: O_CREAT without mode ***: ./busybox terminated
      ======= Backtrace: =========
      /lib/x86_64-linux-gnu/libc.so.6(+0x7338f)[0x7f66d921338f]
      /lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f66d92aac9c]
      /lib/x86_64-linux-gnu/libc.so.6(+0xeb6aa)[0x7f66d928b6aa]
      ./busybox[0x4899f9]
      ======= Memory map: ========
      00400000-004d0000 r-xp 00000000 00:1a 137559                             /home/ari/busybox/busybox
      006cf000-006d0000 r--p 000cf000 00:1a 137559                             /home/ari/busybox/busybox
      006d0000-006d1000 rw-p 000d0000 00:1a 137559                             /home/ari/busybox/busybox
      006d1000-006d4000 rw-p 00000000 00:00 0
      014e7000-01508000 rw-p 00000000 00:00 0                                  [heap]
      7f66d8f8a000-7f66d8fa0000 r-xp 00000000 08:07 1579008                    /lib/x86_64-linux-gnu/libgcc_s.so.1
      7f66d8fa0000-7f66d919f000 ---p 00016000 08:07 1579008                    /lib/x86_64-linux-gnu/libgcc_s.so.1
      7f66d919f000-7f66d91a0000 rw-p 00015000 08:07 1579008                    /lib/x86_64-linux-gnu/libgcc_s.so.1
      7f66d91a0000-7f66d935b000 r-xp 00000000 08:07 1578994                    /lib/x86_64-linux-gnu/libc-2.19.so
      7f66d935b000-7f66d955a000 ---p 001bb000 08:07 1578994                    /lib/x86_64-linux-gnu/libc-2.19.so
      7f66d955a000-7f66d955e000 r--p 001ba000 08:07 1578994                    /lib/x86_64-linux-gnu/libc-2.19.so
      7f66d955e000-7f66d9560000 rw-p 001be000 08:07 1578994                    /lib/x86_64-linux-gnu/libc-2.19.so
      7f66d9560000-7f66d9565000 rw-p 00000000 00:00 0
      7f66d9565000-7f66d966a000 r-xp 00000000 08:07 1579020                    /lib/x86_64-linux-gnu/libm-2.19.so
      7f66d966a000-7f66d9869000 ---p 00105000 08:07 1579020                    /lib/x86_64-linux-gnu/libm-2.19.so
      7f66d9869000-7f66d986a000 r--p 00104000 08:07 1579020                    /lib/x86_64-linux-gnu/libm-2.19.so
      7f66d986a000-7f66d986b000 rw-p 00105000 08:07 1579020                    /lib/x86_64-linux-gnu/libm-2.19.so
      7f66d986b000-7f66d988e000 r-xp 00000000 08:07 1578981                    /lib/x86_64-linux-gnu/ld-2.19.so
      7f66d9a64000-7f66d9a67000 rw-p 00000000 00:00 0
      7f66d9a8a000-7f66d9a8d000 rw-p 00000000 00:00 0
      7f66d9a8d000-7f66d9a8e000 r--p 00022000 08:07 1578981                    /lib/x86_64-linux-gnu/ld-2.19.so
      7f66d9a8e000-7f66d9a8f000 rw-p 00023000 08:07 1578981                    /lib/x86_64-linux-gnu/ld-2.19.so
      7f66d9a8f000-7f66d9a90000 rw-p 00000000 00:00 0
      7ffc47761000-7ffc47782000 rw-p 00000000 00:00 0                          [stack]
      7ffc477ab000-7ffc477ad000 r-xp 00000000 00:00 0                          [vdso]
      ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
      Aborted (core dumped)
      $
      
      Fix this by simply always setting the mode, as it doesn't hurt even
      when O_CREAT is not specified.
      
      This bug is a regression introduced in fc3e40ee
      
      , as xopen(), which
      was originally used, would automatically set the mode.
      Signed-off-by: default avatarAri Sundholm <ari@tuxera.com>
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      e111a164
  10. 03 Jan, 2016 1 commit
  11. 02 Jan, 2016 2 commits
  12. 01 Jan, 2016 1 commit
  13. 30 Dec, 2015 2 commits
  14. 18 Dec, 2015 2 commits
  15. 17 Dec, 2015 2 commits
  16. 16 Dec, 2015 2 commits
  17. 01 Dec, 2015 1 commit
  18. 06 Nov, 2015 1 commit
  19. 05 Nov, 2015 1 commit
    • Timo Teräs's avatar
      modutils: merge module_entry and module_info to common · 48dc80bb
      Timo Teräs authored
      
      
      This merges the in-memory module info structures of modprobe
      and depmod. This allows sharing hashing by modulename code
      improving depmod runtime with almost factor of 2x.
      
      function                                             old     new   delta
      get_or_add_modentry                                    -      17     +17
      do_modprobe                                          590     601     +11
      moddb_get_or_create                                    -      10     +10
      load_modules_dep                                     195     205     +10
      moddb_get                                              -       7      +7
      add_probe                                             81      78      -3
      modprobe_main                                        721     714      -7
      depmod_main                                          553     543     -10
      config_file_action                                   434     421     -13
      helper_get_module                                    160     144     -16
      parse_module                                         343     320     -23
      order_dep_list                                       105      82     -23
      ------------------------------------------------------------------------------
      (add/remove: 3/0 grow/shrink: 2/7 up/down: 55/-95)            Total: -40 bytes
      Signed-off-by: default avatarTimo Teräs <timo.teras@iki.fi>
      Signed-off-by: default avatarDenys Vlasenko <vda.linux@googlemail.com>
      48dc80bb
  20. 04 Nov, 2015 4 commits
  21. 01 Nov, 2015 5 commits