]> www.fi.muni.cz Git - evince.git/blobdiff - backend/ev-attachment.c
Remove GNOME_VFS_OPEN_TRUNCATE flag which is only available with gnome-vfs
[evince.git] / backend / ev-attachment.c
index 10982676644b615db56eb46d913e236670ed144d..63619afa61dc0f2772f2d645b72dae9a8a4c24f2 100644 (file)
@@ -293,8 +293,7 @@ ev_attachment_save (EvAttachment *attachment,
        g_return_val_if_fail (uri != NULL, FALSE);
 
        result = gnome_vfs_create (&handle, uri,
        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,
                                   FALSE, 0644);
        if (result != GNOME_VFS_OK) {
                g_set_error (error,