busybox: refresh patches
authorFelix Fietkau <nbd@openwrt.org>
Wed, 20 Apr 2011 02:56:23 +0000 (02:56 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 20 Apr 2011 02:56:23 +0000 (02:56 +0000)
SVN-Revision: 26738

20 files changed:
package/busybox/patches/001-init_avoid_loop_opening_tty.patch
package/busybox/patches/003-brctl_show_fix.patch
package/busybox/patches/110-wget_getopt_fix.patch
package/busybox/patches/200-etc_crontabs.patch
package/busybox/patches/240-udhcpc_retries.patch
package/busybox/patches/241-udhcpc-oversized_packets.patch
package/busybox/patches/242-udhcpc_msgs.patch
package/busybox/patches/243-udhcpc_changed_ifindex.patch
package/busybox/patches/250-ash_export-n.patch
package/busybox/patches/300-netmsg.patch
package/busybox/patches/310-passwd_access.patch
package/busybox/patches/340-lock_util.patch
package/busybox/patches/350-httpd_redir.patch
package/busybox/patches/410-httpd_cgi_headers.patch
package/busybox/patches/440-httpd_chdir.patch
package/busybox/patches/470-insmod_search.patch
package/busybox/patches/510-awk_include.patch
package/busybox/patches/524-udhcpc_renew.patch
package/busybox/patches/803-id_getgrouplist.patch
package/busybox/patches/910-insmod-q-flag.patch

index d6e000752fba232ea8fdf3a106e66e6909890bb8..1097720c33feeeff53d7c99412aaf4524ddef07c 100644 (file)
@@ -1,6 +1,6 @@
 --- a/init/init.c
 +++ b/init/init.c
-@@ -460,8 +460,11 @@ static void run_actions(int action_type)
+@@ -572,8 +572,11 @@ static void run_actions(int action_type)
                        /* Only run stuff with pid == 0. If pid != 0,
                         * it is already running
                         */
index d36ffc5c125e8aec37f881a5fa284f127ee808b2..57e35d495d25f92927b08e4554a84ef013de4b24 100644 (file)
@@ -20,7 +20,7 @@
        int fd;
 --- a/networking/Config.src
 +++ b/networking/Config.src
-@@ -79,12 +79,12 @@ config FEATURE_BRCTL_FANCY
+@@ -82,12 +82,12 @@ config FEATURE_BRCTL_FANCY
          This adds about 600 bytes.
  
  config FEATURE_BRCTL_SHOW
index 078872cf0b75029c031259b25e871b3b4d349133..d9ae982a6a228d158dc35a2117728c001357fb30 100644 (file)
@@ -1,8 +1,8 @@
 --- a/networking/wget.c
 +++ b/networking/wget.c
-@@ -545,7 +545,7 @@ int wget_main(int argc UNUSED_PARAM, cha
+@@ -597,7 +597,7 @@ int wget_main(int argc UNUSED_PARAM, cha
+               /* Ignored: */
                // "tries\0"            Required_argument "t"
-               // "timeout\0"          Required_argument "T"
                /* Ignored (we always use PASV): */
 -              "passive-ftp\0"      No_argument       "\xff"
 +              "passive-ftp\0"      No_argument       "\xfd"
index 936ef7ef81630ff10d1f99b7f85d308bdb6658b7..f83ac02a9d52da2ab340eb7f24a462b44a823e8b 100644 (file)
@@ -7,7 +7,7 @@
 -#define CRONTABS        CONFIG_FEATURE_CROND_DIR "/crontabs"
 +#define CRONTABS        "/etc/crontabs"
  #ifndef SENDMAIL
- #define SENDMAIL        "sendmail"
+ # define SENDMAIL       "sendmail"
  #endif
 --- a/miscutils/crontab.c
 +++ b/miscutils/crontab.c
index c78dae533efdc6cebb121945edcb7155bcc7c3cb..73240aa801c58a85234c08622da328c22a496202 100644 (file)
@@ -1,6 +1,6 @@
 --- a/networking/udhcp/dhcpc.c
 +++ b/networking/udhcp/dhcpc.c
-@@ -1017,7 +1017,7 @@ int udhcpc_main(int argc UNUSED_PARAM, c
+@@ -1196,7 +1196,7 @@ int udhcpc_main(int argc UNUSED_PARAM, c
  
                        switch (state) {
                        case INIT_SELECTING:
@@ -9,7 +9,7 @@
                                        if (packet_num == 0)
                                                xid = random_xid();
                                        /* broadcast */
-@@ -1046,7 +1046,7 @@ int udhcpc_main(int argc UNUSED_PARAM, c
+@@ -1225,7 +1225,7 @@ int udhcpc_main(int argc UNUSED_PARAM, c
                                packet_num = 0;
                                continue;
                        case REQUESTING:
index d83bf0b413c7b12f0f89776dec7fc96fffb95adc..56f4e9312754d996642db63ea346143ef4b975e0 100644 (file)
@@ -1,8 +1,6 @@
-diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c
-index 2b7528c..94e53dc 100644
 --- a/networking/udhcp/packet.c
 +++ b/networking/udhcp/packet.c
-@@ -165,6 +165,11 @@ uint16_t FAST_FUNC udhcp_checksum(void *addr, int count)
+@@ -165,6 +165,11 @@ uint16_t FAST_FUNC udhcp_checksum(void *
        return ~sum;
  }
  
@@ -14,7 +12,7 @@ index 2b7528c..94e53dc 100644
  /* Construct a ip/udp header for a packet, send packet */
  int FAST_FUNC udhcp_send_raw_packet(struct dhcp_packet *dhcp_pkt,
                uint32_t source_nip, int source_port,
-@@ -173,10 +178,10 @@ int FAST_FUNC udhcp_send_raw_packet(struct dhcp_packet *dhcp_pkt,
+@@ -173,10 +178,10 @@ int FAST_FUNC udhcp_send_raw_packet(stru
  {
        struct sockaddr_ll dest_sll;
        struct ip_udp_dhcp_packet packet;
@@ -26,7 +24,7 @@ index 2b7528c..94e53dc 100644
  
        fd = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP));
        if (fd < 0) {
-@@ -185,8 +190,8 @@ int FAST_FUNC udhcp_send_raw_packet(struct dhcp_packet *dhcp_pkt,
+@@ -185,8 +190,8 @@ int FAST_FUNC udhcp_send_raw_packet(stru
        }
  
        memset(&dest_sll, 0, sizeof(dest_sll));
@@ -37,7 +35,7 @@ index 2b7528c..94e53dc 100644
  
        dest_sll.sll_family = AF_PACKET;
        dest_sll.sll_protocol = htons(ETH_P_IP);
-@@ -199,36 +204,24 @@ int FAST_FUNC udhcp_send_raw_packet(struct dhcp_packet *dhcp_pkt,
+@@ -199,36 +204,24 @@ int FAST_FUNC udhcp_send_raw_packet(stru
                goto ret_close;
        }
  
@@ -80,7 +78,7 @@ index 2b7528c..94e53dc 100644
                        (struct sockaddr *) &dest_sll, sizeof(dest_sll));
        msg = "sendto";
   ret_close:
-@@ -246,7 +239,6 @@ int FAST_FUNC udhcp_send_kernel_packet(struct dhcp_packet *dhcp_pkt,
+@@ -246,7 +239,6 @@ int FAST_FUNC udhcp_send_kernel_packet(s
                uint32_t dest_nip, int dest_port)
  {
        struct sockaddr_in client;
@@ -88,7 +86,7 @@ index 2b7528c..94e53dc 100644
        int fd;
        int result = -1;
        const char *msg;
-@@ -277,9 +269,7 @@ int FAST_FUNC udhcp_send_kernel_packet(struct dhcp_packet *dhcp_pkt,
+@@ -277,9 +269,7 @@ int FAST_FUNC udhcp_send_kernel_packet(s
        }
  
        udhcp_dump_packet(dhcp_pkt);
index ea606ecc3c6bb81f75578756c4f3d87b2912470f..7d390f1667714d958e0ba173c9c0ac3b187f3965 100644 (file)
@@ -1,15 +1,15 @@
 --- a/networking/udhcp/dhcpc.c
 +++ b/networking/udhcp/dhcpc.c
-@@ -428,6 +428,7 @@ static int raw_bcast_from_client_config_
- static int send_discover(uint32_t xid, uint32_t requested)
+@@ -436,6 +436,7 @@ static int raw_bcast_from_client_config_
+ static NOINLINE int send_discover(uint32_t xid, uint32_t requested)
  {
        struct dhcp_packet packet;
 +      static int msgs = 0;
  
-       init_packet(&packet, DHCPDISCOVER);
-       packet.xid = xid;
-@@ -438,6 +439,7 @@ static int send_discover(uint32_t xid, u
-       udhcp_add_simple_option(&packet, DHCP_MAX_SIZE, htons(576));
+       /* Fill in: op, htype, hlen, cookie, chaddr fields,
+        * random xid field (we override it below),
+@@ -453,6 +454,7 @@ static NOINLINE int send_discover(uint32
+        */
        add_client_options(&packet);
  
 +      if (msgs++ < 3)
index 45339242bf3be62cee30de0e184f61ee8ef15f2a..71bfe019336622420bb78913853af3af35fecc0d 100644 (file)
@@ -1,6 +1,6 @@
 --- a/networking/udhcp/dhcpc.c
 +++ b/networking/udhcp/dhcpc.c
-@@ -980,6 +980,12 @@ int udhcpc_main(int argc UNUSED_PARAM, c
+@@ -1144,6 +1144,12 @@ int udhcpc_main(int argc UNUSED_PARAM, c
                /* silence "uninitialized!" warning */
                unsigned timestamp_before_wait = timestamp_before_wait;
  
index 9c23920b8848f48a7ea5d07272383aeb893546d5..1c34b2cd7bd5e92d55500c771e59fba1258b5f62 100644 (file)
@@ -1,6 +1,6 @@
 --- a/shell/ash.c
 +++ b/shell/ash.c
-@@ -12429,8 +12429,17 @@ exportcmd(int argc UNUSED_PARAM, char **
+@@ -12532,8 +12532,17 @@ exportcmd(int argc UNUSED_PARAM, char **
        const char *p;
        char **aptr;
        int flag = argv[0][0] == 'r' ? VREADONLY : VEXPORT;
@@ -19,7 +19,7 @@
                aptr = argptr;
                name = *aptr;
                if (name) {
-@@ -12442,10 +12451,12 @@ exportcmd(int argc UNUSED_PARAM, char **
+@@ -12545,10 +12554,12 @@ exportcmd(int argc UNUSED_PARAM, char **
                                        vp = *findvar(hashvar(name), name);
                                        if (vp) {
                                                vp->flags |= flag;
index d9d2f14a874d7e4e2b502986ad1d0118202669df..795ebb36230266329b9660080938d6f452356039 100644 (file)
@@ -1,8 +1,6 @@
-diff --git a/include/applets.src.h b/include/applets.src.h
-index f4fab53..f97f2d8 100644
 --- a/include/applets.src.h
 +++ b/include/applets.src.h
-@@ -256,6 +256,7 @@ IF_MT(APPLET(mt, _BB_DIR_BIN, _BB_SUID_DROP))
+@@ -256,6 +256,7 @@ IF_MT(APPLET(mt, _BB_DIR_BIN, _BB_SUID_D
  IF_MV(APPLET(mv, _BB_DIR_BIN, _BB_SUID_DROP))
  IF_NAMEIF(APPLET(nameif, _BB_DIR_SBIN, _BB_SUID_DROP))
  IF_NC(APPLET(nc, _BB_DIR_USR_BIN, _BB_SUID_DROP))
@@ -10,8 +8,6 @@ index f4fab53..f97f2d8 100644
  IF_NETSTAT(APPLET(netstat, _BB_DIR_BIN, _BB_SUID_DROP))
  IF_NICE(APPLET(nice, _BB_DIR_BIN, _BB_SUID_DROP))
  IF_NMETER(APPLET(nmeter, _BB_DIR_USR_BIN, _BB_SUID_DROP))
-diff --git a/include/usage.src.h b/include/usage.src.h
-index 30fef24..ac78992 100644
 --- a/include/usage.src.h
 +++ b/include/usage.src.h
 @@ -1,3 +1,4 @@
@@ -29,8 +25,6 @@ index 30fef24..ac78992 100644
  #define nmeter_trivial_usage \
         "format_string"
  #define nmeter_full_usage "\n\n" \
-diff --git a/networking/Config.src b/networking/Config.src
-index 6dd7df7..4682dd3 100644
 --- a/networking/Config.src
 +++ b/networking/Config.src
 @@ -640,6 +640,12 @@ config FEATURE_NAMEIF_EXTENDED
@@ -46,8 +40,6 @@ index 6dd7df7..4682dd3 100644
  config NETSTAT
        bool "netstat"
        default y
-diff --git a/networking/Kbuild.src b/networking/Kbuild.src
-index f41a2df..6070a40 100644
 --- a/networking/Kbuild.src
 +++ b/networking/Kbuild.src
 @@ -27,6 +27,7 @@ lib-$(CONFIG_IP)           += ip.o
@@ -58,9 +50,6 @@ index f41a2df..6070a40 100644
  lib-$(CONFIG_NETSTAT)      += netstat.o
  lib-$(CONFIG_NSLOOKUP)     += nslookup.o
  lib-$(CONFIG_NTPD)         += ntpd.o
-diff --git a/networking/netmsg.c b/networking/netmsg.c
-new file mode 100644
-index 0000000..43aba0d
 --- /dev/null
 +++ b/networking/netmsg.c
 @@ -0,0 +1,63 @@
index 24241c1260982eab24eb7ba9d0a84d4ea1bfd595..a8581db728ba01d0498d1918a0118d7dc78561e3 100644 (file)
@@ -3,7 +3,7 @@
 
 --- a/networking/httpd.c
 +++ b/networking/httpd.c
-@@ -1717,21 +1717,32 @@ static int check_user_passwd(const char
+@@ -1742,21 +1742,32 @@ static int check_user_passwd(const char 
  
                if (ENABLE_FEATURE_HTTPD_AUTH_MD5) {
                        char *md5_passwd;
index 473d1b9ac17acf38f25fc7214f64d2f712657e0c..568391298ebc65b64dfd92a40b2aa14eac0b4879 100644 (file)
@@ -1,6 +1,6 @@
 --- a/include/applets.src.h
 +++ b/include/applets.src.h
-@@ -229,6 +229,7 @@ IF_LN(APPLET_NOEXEC(ln, ln, _BB_DIR_BIN,
+@@ -213,6 +213,7 @@ IF_LN(APPLET_NOEXEC(ln, ln, _BB_DIR_BIN,
  IF_LOAD_POLICY(APPLET(load_policy, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
  IF_LOADFONT(APPLET(loadfont, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
  IF_LOADKMAP(APPLET(loadkmap, _BB_DIR_SBIN, _BB_SUID_DROP))
@@ -10,7 +10,7 @@
  IF_LOGNAME(APPLET_NOFORK(logname, logname, _BB_DIR_USR_BIN, _BB_SUID_DROP, logname))
 --- a/include/usage.src.h
 +++ b/include/usage.src.h
-@@ -2320,6 +2320,9 @@ INSERT
+@@ -2089,6 +2089,9 @@ INSERT
  #define loadkmap_example_usage \
         "$ loadkmap < /etc/i18n/lang-keymap\n"
  
@@ -22,7 +22,7 @@
  #define logger_full_usage "\n\n" \
 --- a/miscutils/Config.src
 +++ b/miscutils/Config.src
-@@ -465,6 +465,11 @@ config FEATURE_HDPARM_HDIO_GETSET_DMA
+@@ -485,6 +485,11 @@ config FEATURE_HDPARM_HDIO_GETSET_DMA
        help
          Enables the 'hdparm -d' option to get/set using_dma flag.
  
index 7437d898c28ed79401242ebf2bd568e9cbde8fb8..3fae94a0960d519b81c71943bcdd4a94200f08d2 100644 (file)
@@ -1,6 +1,6 @@
 --- a/include/usage.src.h
 +++ b/include/usage.src.h
-@@ -1719,7 +1719,8 @@ INSERT
+@@ -1623,7 +1623,8 @@ INSERT
        IF_FEATURE_HTTPD_SETUID(" [-u USER[:GRP]]") \
        IF_FEATURE_HTTPD_BASIC_AUTH(" [-r REALM]") \
         " [-h HOME]\n" \
@@ -10,7 +10,7 @@
  #define httpd_full_usage "\n\n" \
         "Listen for incoming HTTP requests\n" \
       "\nOptions:" \
-@@ -1737,6 +1738,8 @@ INSERT
+@@ -1641,6 +1642,8 @@ INSERT
       "\n      -m STRING       MD5 crypt STRING") \
       "\n      -e STRING       HTML encode STRING" \
       "\n      -d STRING       URL decode STRING" \
@@ -21,7 +21,7 @@
        IF_FEATURE_HWCLOCK_LONG_OPTIONS( \
 --- a/networking/httpd.c
 +++ b/networking/httpd.c
-@@ -250,6 +250,8 @@ struct globals {
+@@ -243,6 +243,8 @@ struct globals {
  
        const char *found_mime_type;
        const char *found_moved_temporarily;
@@ -30,7 +30,7 @@
        Htaccess_IP *ip_a_d;    /* config allow/deny lines */
  
        IF_FEATURE_HTTPD_BASIC_AUTH(const char *g_realm;)
-@@ -296,6 +298,8 @@ struct globals {
+@@ -293,6 +295,8 @@ struct globals {
  #define index_page        (G.index_page       )
  #define found_mime_type   (G.found_mime_type  )
  #define found_moved_temporarily (G.found_moved_temporarily)
@@ -39,7 +39,7 @@
  #define last_mod          (G.last_mod         )
  #define ip_a_d            (G.ip_a_d           )
  #define g_realm           (G.g_realm          )
-@@ -997,8 +1001,11 @@ static void send_headers(int responseNum
+@@ -999,8 +1003,11 @@ static void send_headers(int responseNum
        }
  #endif
        if (responseNum == HTTP_MOVED_TEMPORARILY) {
@@ -52,7 +52,7 @@
                                (g_query ? "?" : ""),
                                (g_query ? g_query : ""));
        }
-@@ -1942,8 +1949,12 @@ static void handle_incoming_and_exit(con
+@@ -1967,8 +1974,12 @@ static void handle_incoming_and_exit(con
        } while (*++tptr);
        *++urlp = '\0';       /* terminate after last character */
  
@@ -66,7 +66,7 @@
                if (is_directory(urlcopy + 1, 1, NULL)) {
                        found_moved_temporarily = urlcopy;
                }
-@@ -2283,7 +2294,9 @@ static void sighup_handler(int sig UNUSE
+@@ -2325,7 +2336,9 @@ static void sighup_handler(int sig UNUSE
  }
  
  enum {
@@ -77,7 +77,7 @@
        d_opt_decode_url,
        h_opt_home_httpd,
        IF_FEATURE_HTTPD_ENCODE_URL_STR(e_opt_encode_url,)
-@@ -2332,12 +2345,13 @@ int httpd_main(int argc UNUSED_PARAM, ch
+@@ -2374,12 +2387,13 @@ int httpd_main(int argc UNUSED_PARAM, ch
        /* We do not "absolutize" path given by -h (home) opt.
         * If user gives relative path in -h,
         * $SCRIPT_FILENAME will not be set. */
index b47751a809ed21f4172e412ea91b7ce059a937e6..19e1f941424d1393c25ad179da6b24720f668c3f 100644 (file)
@@ -1,6 +1,6 @@
 --- a/networking/httpd.c
 +++ b/networking/httpd.c
-@@ -1255,10 +1255,10 @@ static NOINLINE void cgi_io_loop_and_exi
+@@ -1261,10 +1261,10 @@ static NOINLINE void cgi_io_loop_and_exi
                                                if (full_write(STDOUT_FILENO, HTTP_200, sizeof(HTTP_200)-1) != sizeof(HTTP_200)-1)
                                                        break;
                                        }
index 2f44111dcbdd5b210db4e0f716b15a86326e614e..66e41b55f212917313c526913b4098d825d4cad4 100644 (file)
@@ -1,6 +1,6 @@
 --- a/networking/httpd.c
 +++ b/networking/httpd.c
-@@ -1828,6 +1828,7 @@ static void handle_incoming_and_exit(con
+@@ -1853,6 +1853,7 @@ static void handle_incoming_and_exit(con
        char *header_ptr = header_ptr;
        Htaccess_Proxy *proxy_entry;
  #endif
index 8f52d985f7d84154714cc5d3fec62779efc3e8c6..8c5741d17fe2c27ae7de75b121a511658a7e1a64 100644 (file)
@@ -1,6 +1,6 @@
 --- a/modutils/insmod.c
 +++ b/modutils/insmod.c
-@@ -9,6 +9,99 @@
+@@ -11,6 +11,99 @@
  
  #include "libbb.h"
  #include "modutils.h"
  
  /* 2.6 style insmod has no options and required filename
   * (not module name - .ko can't be omitted) */
-@@ -55,9 +148,15 @@ int insmod_main(int argc UNUSED_PARAM, c
+@@ -59,9 +152,15 @@ int insmod_main(int argc UNUSED_PARAM, c
        if (!filename)
                bb_show_usage();
  
  }
 --- a/modutils/Config.src
 +++ b/modutils/Config.src
-@@ -228,7 +228,7 @@ config FEATURE_MODUTILS_SYMBOLS
+@@ -229,7 +229,7 @@ config FEATURE_MODUTILS_SYMBOLS
  config DEFAULT_MODULES_DIR
        string "Default directory containing modules"
        default "/lib/modules"
index 07f28c9de163856cfc1769ad9d1d470137d85c70..9465cdad837c5e7bf0b5beba1b96b7cf6f911df8 100644 (file)
@@ -5,7 +5,7 @@
  /* vi: set sw=4 ts=4: */
  /*
   * awk implementation for busybox
-@@ -70,9 +71,14 @@ typedef struct chain_s {
+@@ -74,9 +75,14 @@ typedef struct chain_s {
  } chain;
  
  /* Function */
@@ -20,7 +20,7 @@
  } func;
  
  /* I/O stream */
-@@ -1453,7 +1459,8 @@ static void parse_program(char *p)
+@@ -1466,7 +1472,8 @@ static void parse_program(char *p)
                        next_token(TC_FUNCTION);
                        g_pos++;
                        f = newfunc(t_string);
@@ -30,7 +30,7 @@
                        f->nargs = 0;
                        while (next_token(TC_VARIABLE | TC_SEQTERM) & TC_VARIABLE) {
                                v = findvar(ahash, t_string);
-@@ -1462,7 +1469,7 @@ static void parse_program(char *p)
+@@ -1475,7 +1482,7 @@ static void parse_program(char *p)
                                if (next_token(TC_COMMA | TC_SEQTERM) & TC_SEQTERM)
                                        break;
                        }
@@ -39,7 +39,7 @@
                        chain_group();
                        clear_array(ahash);
  
-@@ -2547,7 +2554,8 @@ static var *evaluate(node *op, var *res)
+@@ -2573,7 +2580,8 @@ static var *evaluate(node *op, var *res)
                        var *vbeg, *v;
                        const char *sv_progname;
  
@@ -49,7 +49,7 @@
                                syntax_error(EMSG_UNDEF_FUNC);
  
                        vbeg = v = nvalloc(op->r.f->nargs + 1);
-@@ -2564,7 +2572,10 @@ static var *evaluate(node *op, var *res)
+@@ -2590,7 +2598,10 @@ static var *evaluate(node *op, var *res)
                        fnargs = vbeg;
                        sv_progname = g_progname;
  
@@ -61,7 +61,7 @@
  
                        g_progname = sv_progname;
                        nvfree(fnargs);
-@@ -2942,6 +2953,143 @@ static rstream *next_input_file(void)
+@@ -2984,6 +2995,143 @@ static rstream *next_input_file(void)
  #undef files_happen
  }
  
  int awk_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
  int awk_main(int argc, char **argv)
  {
-@@ -3007,6 +3155,9 @@ int awk_main(int argc, char **argv)
+@@ -3049,6 +3197,9 @@ int awk_main(int argc, char **argv)
                        *s1 = '=';
                }
        }
index 2a8e1c14495d9e62baeea0260404836d3ea4b529..64b075a593336effafa03bbe242d0d7473e6fbf5 100644 (file)
@@ -1,6 +1,6 @@
 --- a/networking/udhcp/dhcpc.c
 +++ b/networking/udhcp/dhcpc.c
-@@ -793,7 +793,6 @@ static void perform_renew(void)
+@@ -874,7 +874,6 @@ static void perform_renew(void)
                state = RENEW_REQUESTED;
                break;
        case RENEW_REQUESTED: /* impatient are we? fine, square 1 */
index 48aa57c04f931d94a595a016b6991f827965e929..04d8dc406789f771c265d99910dbd9f11519e371 100644 (file)
@@ -5,9 +5,9 @@ Signed-off-by: Nicolas Thill <nico@openwrt.org>
 
 --- a/coreutils/id.c
 +++ b/coreutils/id.c
-@@ -17,10 +17,12 @@
+@@ -19,10 +19,12 @@
  
- #include "libbb.h"
+ /* This is a NOEXEC applet. Be very careful! */
  
 +#define HAVE_GETGROUPLIST 1
 +
@@ -19,7 +19,7 @@ Signed-off-by: Nicolas Thill <nico@openwrt.org>
  #endif
  #endif
  #endif
-@@ -82,7 +84,11 @@ static int get_groups(const char *userna
+@@ -84,7 +86,11 @@ static int get_groups(const char *userna
                /* If the user is a member of more than
                 * *n groups, then -1 is returned. Otherwise >= 0.
                 * (and no defined way of detecting errors?!) */
@@ -31,7 +31,7 @@ Signed-off-by: Nicolas Thill <nico@openwrt.org>
                /* I guess *n < 0 might indicate error. Anyway,
                 * malloc'ing -1 bytes won't be good, so: */
                //if (*n < 0)
-@@ -154,6 +160,7 @@ int id_main(int argc UNUSED_PARAM, char
+@@ -156,6 +162,7 @@ int id_main(int argc UNUSED_PARAM, char 
                        if (egid != rgid)
                                status |= print_group(egid, " ");
                }
@@ -39,7 +39,7 @@ Signed-off-by: Nicolas Thill <nico@openwrt.org>
                /* We are supplying largish buffer, trying
                 * to not run get_groups() twice. That might be slow
                 * ("user database in remote SQL server" case) */
-@@ -181,6 +188,7 @@ int id_main(int argc UNUSED_PARAM, char
+@@ -183,6 +190,7 @@ int id_main(int argc UNUSED_PARAM, char 
                }
                if (ENABLE_FEATURE_CLEAN_UP)
                        free(groups);
index e77b0a7d371978aa1af8279f2d87419b957b08dc..596fe910de58b077aab8d93633c773afcd34e927 100644 (file)
@@ -1,6 +1,6 @@
 --- a/modutils/insmod.c
 +++ b/modutils/insmod.c
-@@ -129,7 +129,7 @@ int insmod_main(int argc, char **argv) M
+@@ -133,7 +133,7 @@ int insmod_main(int argc, char **argv) M
  int insmod_main(int argc UNUSED_PARAM, char **argv)
  {
        char *filename;
@@ -9,7 +9,7 @@
  
        /* Compat note:
         * 2.6 style insmod has no options and required filename
-@@ -139,10 +139,8 @@ int insmod_main(int argc UNUSED_PARAM, c
+@@ -143,10 +143,8 @@ int insmod_main(int argc UNUSED_PARAM, c
         * or in $MODPATH.
         */
  
@@ -22,7 +22,7 @@
  
        filename = *++argv;
        if (!filename)
-@@ -153,7 +151,7 @@ int insmod_main(int argc UNUSED_PARAM, c
+@@ -157,7 +155,7 @@ int insmod_main(int argc UNUSED_PARAM, c
                        goto done;
  
        rc = bb_init_module(g_filename, parse_cmdline_module_options(argv));