diff options
author | Alexander Larsson <alexl@redhat.com> | 2017-10-26 10:55:20 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2017-10-26 10:55:20 +0200 |
commit | 5b9f55e4b8546f9f3f081a6f1df5680c3e21fc3e (patch) | |
tree | 0aee014229dcb204097e18f9711cc7c3c730b48a /common/flatpak-dir.c | |
parent | ec8efa4e912de5e570023ec1c550b7cd9a92f653 (diff) | |
download | flatpak-5b9f55e4b8546f9f3f081a6f1df5680c3e21fc3e.tar.gz |
common: Unlink the old flatpak-cache symlink if we're replacing it
Diffstat (limited to 'common/flatpak-dir.c')
-rw-r--r-- | common/flatpak-dir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index f90a4fb9..d199b5f2 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -693,6 +693,7 @@ flatpak_ensure_system_user_cache_dir_location (GError **error) return NULL; } + unlink (symlink_path); if (symlink (path, symlink_path) != 0) { glnx_set_error_from_errno (error); |