Ensure that the .ref file is always replaced

We need a unique inode in the deploy dir, if it is hardlinked the file
lock will be shared.
tingping/wmclass
Alexander Larsson 2016-03-02 11:01:29 +01:00
parent 8aa1effe26
commit 765c0af2fe
1 changed files with 1 additions and 1 deletions

View File

@ -2018,7 +2018,7 @@ xdg_app_dir_deploy (XdgAppDir *self,
dotref = g_file_resolve_relative_path (checkoutdir, "files/.ref");
if (!g_file_replace_contents (dotref, "", 0, NULL, FALSE,
G_FILE_CREATE_NONE, NULL, cancellable, error))
G_FILE_CREATE_REPLACE_DESTINATION, NULL, cancellable, error))
goto out;
/* Ensure that various files exists as regular files in /usr/etc, as we