summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tatarinov <kukabu@gmail.com>2012-10-25 08:54:01 +0359
committerEric S. Raymond <esr@thyrsus.com>2013-01-15 05:33:46 -0500
commitdb9ffef4280568ed565fd639d5b9222b21028266 (patch)
tree76cad241883e13780310790edb642f1b1a01f89f
parent0f6d925dfbb9a9485c64a056a671e001cb57d0ad (diff)
downloadgpsd-db9ffef4280568ed565fd639d5b9222b21028266.tar.gz
Better fix for Savannah bug #35377.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
-rw-r--r--gpsd.c4
-rwxr-xr-xregress-driver4
2 files changed, 4 insertions, 4 deletions
diff --git a/gpsd.c b/gpsd.c
index bc9c89c6..e48bbb8a 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1996,6 +1996,10 @@ int main(int argc, char *argv[])
}
#endif /* defined(CONTROL_SOCKET_ENABLE) || defined(SYSTEMD_ENABLE) */
+
+ /* gpsd can't work with 'rigth' timezone when leapseconds inserted */
+ (void)putenv("TZ=UTC");
+
/* might be time to daemonize */
if (go_background) {
/* not SuS/POSIX portable, but we have our own fallback version */
diff --git a/regress-driver b/regress-driver
index 823a7270..f6bcfc02 100755
--- a/regress-driver
+++ b/regress-driver
@@ -96,10 +96,6 @@ then
opts="$opts -b"
fi
-# GPS tests can spuriously fail on Linuxes that set the so-called "right"
-# timezones with leap-second offset baked it.
-TZ=/usr/share/zoneinfo/UTC
-
case $mode in
regress)
echo "Testing the $testing..." >&2