[Top][All Lists]

[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: Gecko/20070719 Iceweasel/ (Debian-

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

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:


  Message sent via/by Savannah

reply via email to

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