From 3cd2376c740930d56849ce79e6b34643d69b5197 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 28 Mar 2024 12:22:23 +0200 Subject: Uppercase auxiliary environment variable prefix --- bbot/agent/agent.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bbot') 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 { -- cgit v1.1