diff options
author | Balint Reczey <balint@balintreczey.hu> | 2022-08-20 18:17:29 +0200 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2022-08-20 18:17:29 +0200 |
commit | 69ca70f20204c63dca3ae4f85dd9a37188dcfc0b (patch) | |
tree | fd3a6ed4ed4551b63d0f9ed74690c8fbcaf2f7df /libmisc/env.c | |
parent | 8d8547f65fc0474fa335d04201ee9c2ccb9aa773 (diff) | |
parent | 675b462b64b213647d0f5c56b1e8440be5890c8a (diff) | |
download | shadow-69ca70f20204c63dca3ae4f85dd9a37188dcfc0b.tar.gz |
Update upstream source from tag 'upstream/4.12.2+dfsg1'
Update to upstream version '4.12.2+dfsg1'
with Debian dir 52044f35b7f4073e1929e253a646847ef319cac4
Diffstat (limited to 'libmisc/env.c')
-rw-r--r-- | libmisc/env.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libmisc/env.c b/libmisc/env.c index 4eba0a33..fc6dbced 100644 --- a/libmisc/env.c +++ b/libmisc/env.c @@ -28,7 +28,7 @@ size_t newenvc = 0; /*@null@*/char **newenvp = NULL; extern char **environ; -static const char *forbid[] = { +static const char *const forbid[] = { "_RLD_=", "BASH_ENV=", /* GNU creeping featurism strikes again... */ "ENV=", @@ -47,7 +47,7 @@ static const char *forbid[] = { /* these are allowed, but with no slashes inside (to work around security problems in GNU gettext) */ -static const char *noslash[] = { +static const char *const noslash[] = { "LANG=", "LANGUAGE=", "LC_", /* anything with the LC_ prefix */ @@ -185,7 +185,7 @@ void set_env (int argc, char *const *argv) noname++; addenv (variable, *argv); } else { - const char **p; + const char *const *p; for (p = forbid; NULL != *p; p++) { if (strncmp (*argv, *p, strlen (*p)) == 0) { @@ -218,7 +218,7 @@ void set_env (int argc, char *const *argv) void sanitize_env (void) { char **envp = environ; - const char **bad; + const char *const *bad; char **cur; char **move; |