diff options
Diffstat (limited to 'meta-initramfs/recipes-devtools/mtd')
-rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/ubiformat.c.patch | 16 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.4.9.bb | 2 |
2 files changed, 4 insertions, 14 deletions
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/ubiformat.c.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/ubiformat.c.patch index 7539d76e3..d21ed577b 100644 --- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/ubiformat.c.patch +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/ubiformat.c.patch | |||
@@ -1,25 +1,15 @@ | |||
1 | --- a/ubi-utils/ubiformat.c 2012-05-03 01:14:39.000000000 +0200 | 1 | --- a/ubi-utils/ubiformat.c 2012-05-03 01:14:39.000000000 +0200 |
2 | +++ b/ubi-utils/ubiformat.c 2012-05-03 01:00:57.000000000 +0200 | 2 | +++ b/ubi-utils/ubiformat.c 2012-05-20 23:11:57.000000000 +0200 |
3 | @@ -246,7 +246,11 @@ | 3 | @@ -246,7 +246,7 @@ |
4 | 4 | ||
5 | while (1) { | 5 | while (1) { |
6 | normsg_cont("continue? (yes/no) "); | 6 | normsg_cont("continue? (yes/no) "); |
7 | - if (scanf("%3s", buf) == EOF) { | 7 | - if (scanf("%3s", buf) == EOF) { |
8 | + | ||
9 | + fflush(stderr); | ||
10 | + fflush(stdout); | ||
11 | + | ||
12 | + if (fgets(buf,4,stdin) == NULL) { | 8 | + if (fgets(buf,4,stdin) == NULL) { |
13 | sys_errmsg("scanf returned unexpected EOF, assume \"yes\""); | 9 | sys_errmsg("scanf returned unexpected EOF, assume \"yes\""); |
14 | return 1; | 10 | return 1; |
15 | } | 11 | } |
16 | @@ -259,10 +263,13 @@ | 12 | @@ -262,7 +262,7 @@ |
17 | |||
18 | static int answer_is_yes(void) | ||
19 | { | ||
20 | + fflush(stderr); | ||
21 | + fflush(stdout); | ||
22 | + | ||
23 | char buf[4]; | 13 | char buf[4]; |
24 | 14 | ||
25 | while (1) { | 15 | while (1) { |
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.4.9.bb b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.4.9.bb index 9a8987cb6..f975952b2 100644 --- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.4.9.bb +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.4.9.bb | |||
@@ -6,7 +6,7 @@ LICENSE = "GPLv2+" | |||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ |
7 | file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c" | 7 | file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c" |
8 | 8 | ||
9 | PR = "r2" | 9 | PR = "r3" |
10 | 10 | ||
11 | inherit klibc | 11 | inherit klibc |
12 | 12 | ||