-
Notifications
You must be signed in to change notification settings - Fork 3
Update m4-version to 1.4.21 from 1.4.19 #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| diff --git a/src/builtin.c b/src/builtin.c | ||
| index 514e11b..827768d 100644 | ||
| --- a/src/builtin.c | ||
| +++ b/src/builtin.c | ||
| @@ -30,6 +30,7 @@ | ||
| #include "regex.h" | ||
| #include "spawn-pipe.h" | ||
| #include "wait-process.h" | ||
| +#include <zos.h> | ||
|
|
||
| #define ARG(i) (argc > (i) ? TOKEN_DATA_TEXT (argv[i]) : "") | ||
| #define ARGLEN(i) (argc > (i) ? TOKEN_DATA_LEN (argv[i]) : 0) | ||
| @@ -1068,6 +1069,11 @@ m4_esyscmd (struct obstack *obs, int argc, token_data **argv) | ||
| close (fd); | ||
| return; | ||
| } | ||
| +#ifdef __MVS__ | ||
| + #if (__CHARSET_LIB == 1) | ||
| + __chgfdccsid(fileno(pin), 819); | ||
| + #endif | ||
| +#endif | ||
| while (1) | ||
| { | ||
| size_t avail = obstack_room (obs); | ||
| @@ -1473,6 +1479,11 @@ mkstemp_helper (struct obstack *obs, const char *me, const char *pattern, | ||
| } | ||
| else | ||
| { | ||
| +#ifdef __MVS__ | ||
| + #if (__CHARSET_LIB == 1) | ||
| + __chgfdccsid(fd, 819); | ||
| + #endif | ||
| +#endif | ||
| close (fd); | ||
| /* Remove NUL, then finish quote. */ | ||
| obstack_blank_fast (obs, -1); | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
stable-patches/builtin.c.patchintroduces an unconditional#include <zos.h>in the upstream source. Is it guaranteed that this patch is only applied/compiled in environments wherezos.hexists (and not, e.g., during any non-z/OS validation builds), since the include isn’t guarded by__MVS__?Severity: low
🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.