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

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

PSPP-BUG: [bug #21280] gui truncates system files.


From: Ben Pfaff
Subject: PSPP-BUG: [bug #21280] gui truncates system files.
Date: Wed, 10 Oct 2007 15:29:45 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.5) Gecko/20070719 Iceweasel/2.0.0.5 (Debian-2.0.0.5-0etch1+lenny1)

Follow-up Comment #7, bug #21280 (project pspp):

OK.  This is do-able.  There is an issue to be resolved, however: when does
the file get replaced?  This comes up when an error occurs while the operation
is running.  In that case, one would hope that the original file would not be
deleted.

One solution is: when a file is opened for writing, create it under a
temporary name other than the one that the user chose.  Then, when the file is
closed, rename it to the final name.  (The temporary and final files should be
in the same directory to ensure that rename does not fail because it is a
cross-file system operation.)

Does this sound reasonable to you?

    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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