From b3be9eb8692e6c1c4516f0905cb7e113d18dd190 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Sun, 11 Nov 2018 16:07:20 -0500 Subject: [PATCH] GUACAMOLE-422: Revert addition of logging for setting TZ variable. --- src/protocols/rdp/rdp_settings.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/protocols/rdp/rdp_settings.c b/src/protocols/rdp/rdp_settings.c index 27553e3b..e9b81c21 100644 --- a/src/protocols/rdp/rdp_settings.c +++ b/src/protocols/rdp/rdp_settings.c @@ -1281,15 +1281,8 @@ void guac_rdp_push_settings(guac_rdp_settings* guac_settings, freerdp* rdp) { #endif /* Device redirection */ - if (guac_settings->timezone) { - - /* Set the TZ env variable */ - if (setenv("TZ", guac_settings->timezone, 1)) { - guac_user_log(user, GUAC_LOG_WARNING, "Could not set TZ " - "variable. Received error %i", errno); - } - - } + if (guac_settings->timezone) + setenv("TZ", guac_settings->timezone, 1) #ifdef LEGACY_RDPSETTINGS #ifdef HAVE_RDPSETTINGS_DEVICEREDIRECTION