diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-03-28 12:22:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-03-28 12:22:23 +0200 |
commit | 3cd2376c740930d56849ce79e6b34643d69b5197 (patch) | |
tree | 7c10a6cdf54f37855bb249822387962715ab1ed1 | |
parent | 384d90c19758e5433aa3f7714d4531936b83fab0 (diff) |
Uppercase auxiliary environment variable prefix
-rw-r--r-- | bbot/agent/agent.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bbot/agent/agent.cxx b/bbot/agent/agent.cxx index 7d734d3..ff380c8 100644 --- a/bbot/agent/agent.cxx +++ b/bbot/agent/agent.cxx @@ -1744,7 +1744,7 @@ try l3 ([&]{trace << "completed startup in " << startup_to - to << "s";}); // Read the uploaded environment and, if necessary, append the name prefix - // (which we first make a valid C identifier). + // (which we first make a valid C identifier and uppercase). // // Note that it may seem like a good idea to validate the format here. // But that means we will essentially need to parse it twice (here and in @@ -1754,7 +1754,7 @@ try // string env_pfx (env_name.empty () ? string () - : sanitize_identifier (env_name) + '_'); + : ucase (sanitize_identifier (env_name)) + '_'); string env; try { |