octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #63803] Saving causes OOM, crash, and loss of


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #63803] Saving causes OOM, crash, and loss of already saved data
Date: Fri, 5 May 2023 12:37:32 -0400 (EDT)

Follow-up Comment #33, bug #63803 (project octave):

The following also fails with the same error on Windows:

>> fid = fopen('file1', 'w'); fclose(fid);
>> fid = fopen('file2', 'w'); fclose(fid);
>> rename('file1', 'file2')
error: rename: operation failed: File exists


But the following succeeds:

>> fid = fopen('file1', 'w'); fclose(fid);
>> fid = fopen('file2', 'w'); fclose(fid);
>> movefile('file1', 'file2')
>>


I haven't checked on Linux.
Does `rename` succeed or fail when the target file already exists on that
platform?



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63803>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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