From 54d4f56ea0bb307ab76224389d33f33c19d61fae Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 10 Oct 2020 11:51:50 -0700 Subject: time: Solaris fix: don't assign to env_list. * time.c (env_list): The env_list variable is static in lib.c. The idea here was that since we modified the environment with setenv, we should invalidate the env hash which stores a cached copy of it. However, the setenv library function that is exposed to programs neglects to do this, which is a much larger issue. Let's delete the assignment to env_list and deal with the whole issue later. --- time.c | 1 - 1 file changed, 1 deletion(-) diff --git a/time.c b/time.c index 07d2d695..ea4b3065 100644 --- a/time.c +++ b/time.c @@ -377,7 +377,6 @@ static time_t timegm_hack(struct tm *tm) tzset(); #endif - env_list = nil; return ret; } #endif -- cgit v1.2.3