diff options
Diffstat (limited to 'meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch')
-rw-r--r-- | meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch b/meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch index f46d7f7014..1f6b89f2b6 100644 --- a/meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch +++ b/meta-oe/recipes-support/lvm2/files/0001-implement-libc-specific-reopen_stream.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From e3103459416616d3b8508e7176e897b0ae6c90f2 Mon Sep 17 00:00:00 2001 | 1 | From 65a04547541894b3ec56bd70510b164810cd64b3 Mon Sep 17 00:00:00 2001 |
2 | From: Dengke Du <dengke.du@windriver.com> | 2 | From: Dengke Du <dengke.du@windriver.com> |
3 | Date: Tue, 25 Oct 2016 11:49:40 +0000 | 3 | Date: Tue, 25 Oct 2016 11:49:40 +0000 |
4 | Subject: [PATCH] implement libc specific reopen_stream | 4 | Subject: [PATCH] implement libc specific reopen_stream |
@@ -14,18 +14,17 @@ http://git.alpinelinux.org/cgit/aports/tree/main/lvm2/fix-stdio-usage.patch | |||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
15 | Signed-off-by: Dengke Du <dengke.du@windriver.com> | 15 | Signed-off-by: Dengke Du <dengke.du@windriver.com> |
16 | 16 | ||
17 | --- | ||
18 | Upstream-Status: Pending | 17 | Upstream-Status: Pending |
19 | 18 | --- | |
20 | lib/log/log.c | 6 ++++++ | 19 | lib/log/log.c | 6 ++++++ |
21 | tools/lvmcmdline.c | 6 +++--- | 20 | tools/lvmcmdline.c | 6 +++--- |
22 | 2 files changed, 9 insertions(+), 3 deletions(-) | 21 | 2 files changed, 9 insertions(+), 3 deletions(-) |
23 | 22 | ||
24 | Index: LVM2.2.02.177/lib/log/log.c | 23 | diff --git a/lib/log/log.c b/lib/log/log.c |
25 | =================================================================== | 24 | index 90905e629..ed69662d0 100644 |
26 | --- LVM2.2.02.177.orig/lib/log/log.c | 25 | --- a/lib/log/log.c |
27 | +++ LVM2.2.02.177/lib/log/log.c | 26 | +++ b/lib/log/log.c |
28 | @@ -161,6 +161,7 @@ static void _check_and_replace_standard_ | 27 | @@ -165,6 +165,7 @@ static void _check_and_replace_standard_log_streams(FILE *old_stream, FILE *new_ |
29 | * Close and reopen standard stream on file descriptor fd. | 28 | * Close and reopen standard stream on file descriptor fd. |
30 | */ | 29 | */ |
31 | int reopen_standard_stream(FILE **stream, const char *mode) | 30 | int reopen_standard_stream(FILE **stream, const char *mode) |
@@ -33,7 +32,7 @@ Index: LVM2.2.02.177/lib/log/log.c | |||
33 | { | 32 | { |
34 | int fd, fd_copy, new_fd; | 33 | int fd, fd_copy, new_fd; |
35 | const char *name; | 34 | const char *name; |
36 | @@ -207,6 +208,11 @@ int reopen_standard_stream(FILE **stream | 35 | @@ -211,6 +212,11 @@ int reopen_standard_stream(FILE **stream, const char *mode) |
37 | *stream = new_stream; | 36 | *stream = new_stream; |
38 | return 1; | 37 | return 1; |
39 | } | 38 | } |
@@ -45,11 +44,11 @@ Index: LVM2.2.02.177/lib/log/log.c | |||
45 | 44 | ||
46 | void init_log_fn(lvm2_log_fn_t log_fn) | 45 | void init_log_fn(lvm2_log_fn_t log_fn) |
47 | { | 46 | { |
48 | Index: LVM2.2.02.177/tools/lvmcmdline.c | 47 | diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c |
49 | =================================================================== | 48 | index 22ae1e3bb..b0928bc04 100644 |
50 | --- LVM2.2.02.177.orig/tools/lvmcmdline.c | 49 | --- a/tools/lvmcmdline.c |
51 | +++ LVM2.2.02.177/tools/lvmcmdline.c | 50 | +++ b/tools/lvmcmdline.c |
52 | @@ -3095,7 +3095,7 @@ static int _check_standard_fds(void) | 51 | @@ -3407,7 +3407,7 @@ static int _check_standard_fds(void) |
53 | int err = is_valid_fd(STDERR_FILENO); | 52 | int err = is_valid_fd(STDERR_FILENO); |
54 | 53 | ||
55 | if (!is_valid_fd(STDIN_FILENO) && | 54 | if (!is_valid_fd(STDIN_FILENO) && |
@@ -58,7 +57,7 @@ Index: LVM2.2.02.177/tools/lvmcmdline.c | |||
58 | if (err) | 57 | if (err) |
59 | perror("stdin stream open"); | 58 | perror("stdin stream open"); |
60 | else | 59 | else |
61 | @@ -3105,7 +3105,7 @@ static int _check_standard_fds(void) | 60 | @@ -3417,7 +3417,7 @@ static int _check_standard_fds(void) |
62 | } | 61 | } |
63 | 62 | ||
64 | if (!is_valid_fd(STDOUT_FILENO) && | 63 | if (!is_valid_fd(STDOUT_FILENO) && |
@@ -67,7 +66,7 @@ Index: LVM2.2.02.177/tools/lvmcmdline.c | |||
67 | if (err) | 66 | if (err) |
68 | perror("stdout stream open"); | 67 | perror("stdout stream open"); |
69 | /* else no stdout */ | 68 | /* else no stdout */ |
70 | @@ -3113,7 +3113,7 @@ static int _check_standard_fds(void) | 69 | @@ -3425,7 +3425,7 @@ static int _check_standard_fds(void) |
71 | } | 70 | } |
72 | 71 | ||
73 | if (!is_valid_fd(STDERR_FILENO) && | 72 | if (!is_valid_fd(STDERR_FILENO) && |