diff options
author | Thiago Jung Bauermann <thiago.bauermann@kolabnow.com> | 2019-12-16 01:31:37 -0300 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2019-12-16 09:07:23 +0100 |
commit | c3bd7bc8553e0033b318a4b9ea6fb2de0cebafa9 (patch) | |
tree | 1f2c5d84f8661badab2560421f4487f43235769c | |
parent | f4337b9a4ef7b0ebeb8b8c6c693c3f85a27b4506 (diff) | |
download | flatpak-c3bd7bc8553e0033b318a4b9ea6fb2de0cebafa9.tar.gz |
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.
-rw-r--r-- | common/flatpak-utils-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |