Opened 8 months ago
Closed 8 months ago
#18851 closed bug (fixed)
[kernel][vfs] rename to identical path should be a noop
Reported by: | Anarchos | Owned by: | nobody |
---|---|---|---|
Priority: | low | Milestone: | R1/beta5 |
Component: | System/Kernel | Version: | R1/Development |
Keywords: | vfs, rename | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
vfs/common_rename is a no-op when same path.
Rationale : -The old behaviour was introduced by the commit f40c5e32115c22bd1b76ee1abe607040c09681a9 (05 Nov 2009). -The new behaviour is mandated by POSIX https://pubs.opengroup.org/onlinepubs/9699919799/ -The new behaviour permits to rename an empty folder to itself without error (this was my primary use case, encountered here:https://github.com/ocaml/ocaml/blob/trunk/testsuite/tests/lib-sys/rename.ml#L85.
Proposal : change proposed
Change History (1)
comment:1 by , 8 months ago
Milestone: | Unscheduled → R1/beta5 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fix merged in hrev57646.