[totem] Make sure temporary copy of playlist file keeps permissions
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [totem] Make sure temporary copy of playlist file keeps permissions
- Date: Thu, 19 Nov 2009 14:27:36 +0000 (UTC)
commit ddbee71115063b9117665e892971b579d6aa5300
Author: Bastien Nocera <hadess hadess net>
Date: Thu Nov 19 14:26:25 2009 +0000
Make sure temporary copy of playlist file keeps permissions
browser-plugin/totem-plugin-viewer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index aff21c3..69b52cb 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -974,7 +974,7 @@ totem_embedded_set_playlist (TotemEmbedded *emb,
}
src = g_file_new_for_path (path);
dst = g_file_new_for_path (tmpfile);
- if (g_file_copy (src, dst, G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, &err) == FALSE) {
+ if (g_file_copy (src, dst, G_FILE_COPY_OVERWRITE | G_FILE_COPY_TARGET_DEFAULT_PERMS, NULL, NULL, NULL, &err) == FALSE) {
g_warning ("Failed to copy playlist '%s' to '%s': %s",
path, tmpfile, err->message);
g_error_free (err);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]