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, 14 insertions, 17 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..a064516e32 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 a86919ed5468f3c152114446c189b00f5f656d59 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 |
| @@ -13,19 +13,16 @@ http://git.alpinelinux.org/cgit/aports/tree/main/lvm2/fix-stdio-usage.patch | |||
| 13 | 13 | ||
| 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 | |||
| 17 | --- | 16 | --- |
| 18 | Upstream-Status: Pending | ||
| 19 | |||
| 20 | lib/log/log.c | 6 ++++++ | 17 | lib/log/log.c | 6 ++++++ |
| 21 | tools/lvmcmdline.c | 6 +++--- | 18 | tools/lvmcmdline.c | 6 +++--- |
| 22 | 2 files changed, 9 insertions(+), 3 deletions(-) | 19 | 2 files changed, 9 insertions(+), 3 deletions(-) |
| 23 | 20 | ||
| 24 | Index: LVM2.2.02.177/lib/log/log.c | 21 | diff --git a/lib/log/log.c b/lib/log/log.c |
| 25 | =================================================================== | 22 | index 7b88252f0..e1720098a 100644 |
| 26 | --- LVM2.2.02.177.orig/lib/log/log.c | 23 | --- a/lib/log/log.c |
| 27 | +++ LVM2.2.02.177/lib/log/log.c | 24 | +++ b/lib/log/log.c |
| 28 | @@ -161,6 +161,7 @@ static void _check_and_replace_standard_ | 25 | @@ -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. | 26 | * Close and reopen standard stream on file descriptor fd. |
| 30 | */ | 27 | */ |
| 31 | int reopen_standard_stream(FILE **stream, const char *mode) | 28 | int reopen_standard_stream(FILE **stream, const char *mode) |
| @@ -33,7 +30,7 @@ Index: LVM2.2.02.177/lib/log/log.c | |||
| 33 | { | 30 | { |
| 34 | int fd, fd_copy, new_fd; | 31 | int fd, fd_copy, new_fd; |
| 35 | const char *name; | 32 | const char *name; |
| 36 | @@ -207,6 +208,11 @@ int reopen_standard_stream(FILE **stream | 33 | @@ -211,6 +212,11 @@ int reopen_standard_stream(FILE **stream, const char *mode) |
| 37 | *stream = new_stream; | 34 | *stream = new_stream; |
| 38 | return 1; | 35 | return 1; |
| 39 | } | 36 | } |
| @@ -45,11 +42,11 @@ Index: LVM2.2.02.177/lib/log/log.c | |||
| 45 | 42 | ||
| 46 | void init_log_fn(lvm2_log_fn_t log_fn) | 43 | void init_log_fn(lvm2_log_fn_t log_fn) |
| 47 | { | 44 | { |
| 48 | Index: LVM2.2.02.177/tools/lvmcmdline.c | 45 | diff --git a/tools/lvmcmdline.c b/tools/lvmcmdline.c |
| 49 | =================================================================== | 46 | index 3fd23a521..c2ee39905 100644 |
| 50 | --- LVM2.2.02.177.orig/tools/lvmcmdline.c | 47 | --- a/tools/lvmcmdline.c |
| 51 | +++ LVM2.2.02.177/tools/lvmcmdline.c | 48 | +++ b/tools/lvmcmdline.c |
| 52 | @@ -3095,7 +3095,7 @@ static int _check_standard_fds(void) | 49 | @@ -3380,7 +3380,7 @@ static int _check_standard_fds(void) |
| 53 | int err = is_valid_fd(STDERR_FILENO); | 50 | int err = is_valid_fd(STDERR_FILENO); |
| 54 | 51 | ||
| 55 | if (!is_valid_fd(STDIN_FILENO) && | 52 | if (!is_valid_fd(STDIN_FILENO) && |
| @@ -58,7 +55,7 @@ Index: LVM2.2.02.177/tools/lvmcmdline.c | |||
| 58 | if (err) | 55 | if (err) |
| 59 | perror("stdin stream open"); | 56 | perror("stdin stream open"); |
| 60 | else | 57 | else |
| 61 | @@ -3105,7 +3105,7 @@ static int _check_standard_fds(void) | 58 | @@ -3390,7 +3390,7 @@ static int _check_standard_fds(void) |
| 62 | } | 59 | } |
| 63 | 60 | ||
| 64 | if (!is_valid_fd(STDOUT_FILENO) && | 61 | if (!is_valid_fd(STDOUT_FILENO) && |
| @@ -67,7 +64,7 @@ Index: LVM2.2.02.177/tools/lvmcmdline.c | |||
| 67 | if (err) | 64 | if (err) |
| 68 | perror("stdout stream open"); | 65 | perror("stdout stream open"); |
| 69 | /* else no stdout */ | 66 | /* else no stdout */ |
| 70 | @@ -3113,7 +3113,7 @@ static int _check_standard_fds(void) | 67 | @@ -3398,7 +3398,7 @@ static int _check_standard_fds(void) |
| 71 | } | 68 | } |
| 72 | 69 | ||
| 73 | if (!is_valid_fd(STDERR_FILENO) && | 70 | if (!is_valid_fd(STDERR_FILENO) && |
