Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:hiberis:wix:EXPERIMENTAL
mingw32-evince
0001-libview-close-tmpfile-descriptor-before-co...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-libview-close-tmpfile-descriptor-before-copying-to-i.patch of Package mingw32-evince
From a37be61f2a4015c736d92e79edbafdf3fe09a35e Mon Sep 17 00:00:00 2001 From: Hib Eris <hib@hiberis.nl> Date: Thu, 9 Jun 2011 13:18:22 +0200 Subject: [PATCH] libview: close tmpfile descriptor before copying to it It seems that on Windows, g_file_copy() does not work on files with a file desciptor open. This is done to fix saving of tiff files on Windows. --- libview/ev-jobs.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/libview/ev-jobs.c b/libview/ev-jobs.c index e152275..6aa5e94 100644 --- a/libview/ev-jobs.c +++ b/libview/ev-jobs.c @@ -1053,6 +1053,7 @@ ev_job_save_run (EvJob *job) return FALSE; } + close (fd); ev_document_doc_mutex_lock (); @@ -1062,8 +1063,6 @@ ev_job_save_run (EvJob *job) ev_document_save (job->document, local_uri, &error); } - close (fd); - ev_document_doc_mutex_unlock (); if (error) { -- 1.7.4.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor