REBOL3 tracker
  0.9.12 beta
Ticket #0001705 User: anonymous

Project:



rss
TypeBug Statuscomplete Date21-Oct-2010 05:45
Versionalpha 97 CategoryUnspecified Submitted byabolka
PlatformLinux x86 libc6 Severityminor Prioritynormal

Summary RENAME on a file! causes an error even though the rename was successful
Description When renaming a file using Linux R3, an error is caused even though the rename was actually successful.

This bug is present in all Linux versions since at least A97.
Example code
>> write %foo "test"

>> rename %foo %bar
** Access error: cannot rename: %foo
** Where: rename
** Near: rename %foo %bar

>> exists? %foo
== none

>> exists? %bar
== file

Assigned ton/a Fixed inalpha 110 Last Update23-Dec-2012 12:18

Attached Files

Comments
(0002642)
abolka
21-Oct-2010 05:51

Actually a trivial fix, the return code check in the hostkit's Rename_File (dev_file.c:436) is wrong. Attached is a patch against the Linux A107 hostkit that fixes this.
(0002647)
Carl
21-Oct-2010 20:42

Thanks for the fix.

Date User Field Action Change
23-Dec-2012 12:18 abolka Status Modified tested => complete
4-Nov-2010 04:27 abolka Status Modified built => tested
26-Oct-2010 23:36 carl Fixedin Modified => alpha 110
26-Oct-2010 23:36 carl Status Modified reviewed => built
21-Oct-2010 20:43 carl Status Modified submitted => reviewed
21-Oct-2010 20:42 carl Comment : 0002647 Added -
21-Oct-2010 05:53 abolka Description Modified -
21-Oct-2010 05:53 abolka Code Modified -
21-Oct-2010 05:53 abolka Version Modified alpha 109 => alpha 97
21-Oct-2010 05:51 abolka Comment : 0002642 Added -
21-Oct-2010 05:45 abolka Ticket Added -