From 18bf46c70ad5610ca6cd2438f27588aaa713d153 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Tue, 15 Aug 2006 16:30:55 +0000 Subject: [PATCH] Remove GNOME_VFS_OPEN_TRUNCATE flag which is only available with gnome-vfs 2006-08-14 Carlos Garcia Campos * backend/ev-attachment.c: (ev_attachment_save): Remove GNOME_VFS_OPEN_TRUNCATE flag which is only available with gnome-vfs >= 2.9.3 and it's not really needed. Fixes bug #351493 --- ChangeLog | 8 ++++++++ backend/ev-attachment.c | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7b603936..5c9836f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,12 @@ +2006-08-14 Carlos Garcia Campos + + * backend/ev-attachment.c: (ev_attachment_save): + + Remove GNOME_VFS_OPEN_TRUNCATE flag which is only available with + gnome-vfs >= 2.9.3 and it's not really needed. Fixes bug #351493 + 2006-08-15 Julien Rebetez + * shell/ev-window.c: (ev_window_cmd_recent_file_activate): Fixed a compilation error if HAVE_GTK_RECENT isn't defined. diff --git a/backend/ev-attachment.c b/backend/ev-attachment.c index 10982676..63619afa 100644 --- a/backend/ev-attachment.c +++ b/backend/ev-attachment.c @@ -293,8 +293,7 @@ ev_attachment_save (EvAttachment *attachment, g_return_val_if_fail (uri != NULL, FALSE); result = gnome_vfs_create (&handle, uri, - GNOME_VFS_OPEN_WRITE | - GNOME_VFS_OPEN_TRUNCATE, + GNOME_VFS_OPEN_WRITE, FALSE, 0644); if (result != GNOME_VFS_OK) { g_set_error (error, -- 2.43.5