Package: synaptic
Version: 0.57.7.1
Tags: patch
Followup-For: Bug #334168

Hi,

I wrote a very small patch for this bug. As moving a file across
different mount points is quite difficult[1], I choosed to create the temp
file in the same directory as the preferences file.

I hope this is OK!

Note:
1. The only way I found is to copy the source file to destination and
delete the source file

Cheers, 

tibob
--- synaptic-0.57.7.1/common/rpackage.cc	2005-09-22 10:03:59.000000000 +0200
+++ synaptic-0.57.7.1-patch/common/rpackage.cc	2006-01-22 19:44:55.000000000 +0100
@@ -873,7 +873,7 @@
       // delete package from pinning file
       stat(File.c_str(), &stat_buf);
       // create a tmp_pin file in the internal dir
-      string filename = RTmpDir()+"/tmp_pin";
+      string filename = RStateDir() + "/.tmp_preferences";
       FILE *out = fopen(filename.c_str(),"w");
       if (out == NULL)
          cerr << "error opening tmpfile: " << filename << endl;

Reply via email to