From ec8efa4e912de5e570023ec1c550b7cd9a92f653 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 26 Oct 2017 10:53:17 +0200 Subject: [PATCH] Fix .flatpak-cache symlink --- common/flatpak-dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index c835a134..f90a4fb9 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -682,7 +682,7 @@ flatpak_ensure_system_user_cache_dir_location (GError **error) /* Must be owned by us */ st_buf.st_uid == getuid () && /* and not writeable by others */ - (st_buf.st_mode & 0022) != 0) + (st_buf.st_mode & 0022) == 0) return g_file_new_for_path (path); path = g_strdup ("/var/tmp/flatpak-cache-XXXXXX");