From 18bf46c70ad5610ca6cd2438f27588aaa713d153 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Tue, 15 Aug 2006 16:30:55 +0000 Subject: 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 --- (limited to 'backend') diff --git a/backend/ev-attachment.c b/backend/ev-attachment.c index 1098267..63619af 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, -- cgit v0.9.1