[v22,6/9] argp: do not display option name translations if __libc_enable_secure
Checks
| Context |
Check |
Description |
| redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
Commit Message
---
argp/argp-help.c | 3 +++
1 file changed, 3 insertions(+)
@@ -1215,6 +1215,9 @@ translate_option_name (const char *name, char **allocated)
one is used. */
/* FIXME: use pgettext_expr. */
*allocated = NULL;
+ if (__libc_enable_secure)
+ /* Translations are disabled. */
+ return name;
if (__asprintf (allocated, "command-line option\004%s", name) == -1)
{
/* *allocated is NULL */