bug-gnu-pspp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PSPP-BUG: [bug #25795] Problem saving changes


From: John Darrington
Subject: PSPP-BUG: [bug #25795] Problem saving changes
Date: Fri, 20 Mar 2009 02:59:36 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020409 Iceweasel/3.0.6 (Debian-3.0.6-1)

Follow-up Comment #5, bug #25795 (project pspp):

Unfortunately this isn't a correct solution to the problem.  It'll break a
number of other things, because we need the destination to remain intact if
renaming the file fails for any reason.

Currently we have:

 rename (rf->tmp_name, rf->file_name);

one solution would be to change this to:

 rename (rf->file_name, tmp2_name);
 if ( ! rename (rf->tmp_name, rf->file_name))
  rename (tmp2_name, rf->file_name);

but that brings some issues of its own.

Alternatively if there is a safe equivalent to "rename" in Mingw which can
safely and atomically move files from one filesystem entry to another, then we
could use that.

So we still have to come up with a solution to this problem, but at least we
understand it better.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?25795>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]