Small bug fix to package/kernel/modules/other.mk stty broken in busybox 1.4.1, added patch with fixed code from BB SVN. This will need to be removed when 1.4.2 is released.
SVN-Revision: 6559
This commit is contained in:
parent
f7809d07c8
commit
e86198fcce
2 changed files with 27 additions and 1 deletions
26
package/busybox/patches/930-stty_bug_fix.patch
Normal file
26
package/busybox/patches/930-stty_bug_fix.patch
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
--- build_arm/busybox-1.4.1/coreutils/stty.c.old 2007-03-13 12:59:49.000000000 +0100
|
||||||
|
+++ build_arm/busybox-1.4.1/coreutils/stty.c 2007-03-13 07:51:38.000000000 +0100
|
||||||
|
@@ -568,10 +568,11 @@
|
||||||
|
NULL
|
||||||
|
};
|
||||||
|
int i = index_in_str_array(params, name);
|
||||||
|
- if (i) {
|
||||||
|
- if (!(i == 4 || i == 5))
|
||||||
|
- i |= 0x80;
|
||||||
|
- }
|
||||||
|
+ if (i < 0)
|
||||||
|
+ return 0;
|
||||||
|
+ if (!(i == 4 || i == 5))
|
||||||
|
+ i |= 0x80;
|
||||||
|
+
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -907,6 +908,7 @@
|
||||||
|
#define STTY_verbose_output (1<<2)
|
||||||
|
#define STTY_recoverable_output (1<<3)
|
||||||
|
#define STTY_noargs (1<<4)
|
||||||
|
+int stty_main(int argc, char **argv);
|
||||||
|
int stty_main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
struct termios mode;
|
|
@ -228,7 +228,7 @@ define KernelPackage/mmc/2.6
|
||||||
FILES:= \
|
FILES:= \
|
||||||
$(MODULES_DIR)/kernel/drivers/mmc/mmc_core.$(LINUX_KMOD_SUFFIX) \
|
$(MODULES_DIR)/kernel/drivers/mmc/mmc_core.$(LINUX_KMOD_SUFFIX) \
|
||||||
$(MODULES_DIR)/kernel/drivers/mmc/mmc_block.$(LINUX_KMOD_SUFFIX) \
|
$(MODULES_DIR)/kernel/drivers/mmc/mmc_block.$(LINUX_KMOD_SUFFIX) \
|
||||||
$(MODULES_DIR)/kernel/drivers/mmc/at91_mci.$(LINUX_KMOD_SUFFIX) \
|
$(MODULES_DIR)/kernel/drivers/mmc/at91_mci.$(LINUX_KMOD_SUFFIX)
|
||||||
AUTOLOAD:=$(call AutoLoad,90,mmc_core mmc_block at91_mci)
|
AUTOLOAD:=$(call AutoLoad,90,mmc_core mmc_block at91_mci)
|
||||||
endef
|
endef
|
||||||
$(eval $(call KernelPackage,mmc))
|
$(eval $(call KernelPackage,mmc))
|
||||||
|
|
Loading…
Reference in a new issue