Fix .flatpak-cache symlink

This commit is contained in:
Alexander Larsson
2017-10-26 10:53:17 +02:00
parent 3f1ffd12cd
commit ec8efa4e91

View File

@@ -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");