From c3bd7bc8553e0033b318a4b9ea6fb2de0cebafa9 Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Mon, 16 Dec 2019 01:31:37 -0300 Subject: [PATCH] Fix typo in /etc/timezone filename flatpak_get_timezone () tries to access /etc/timezone if /etc/localtime isn't a valid symlink, but gets the name wrong. Fix it. Found by code inspection. --- common/flatpak-utils-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-utils-base.c b/common/flatpak-utils-base.c index e9786203..ccb5de66 100644 --- a/common/flatpak-utils-base.c +++ b/common/flatpak-utils-base.c @@ -57,7 +57,7 @@ flatpak_get_timezone (void) } } - if (g_file_get_contents ("/etc/timezeone", &etc_timezone, + if (g_file_get_contents ("/etc/timezone", &etc_timezone, NULL, NULL)) { g_strchomp (etc_timezone);