Changes between Initial Version and Version 1 of Ticket #19058
- Timestamp:
- Sep 3, 2024, 11:04:59 AM (2 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #19058 – Description
initial v1 1 1 POSIX https://pubs.opengroup.org/onlinepubs/9799919799/functions/rename.html specifies that the renameat() function "shall fail" with error code EBADF if "The old argument does not specify an absolute path and the oldfd argument is neither AT_FDCWD nor a valid file descriptor open for reading or searching, or the new argument does not specify an absolute path and the newfd argument is neither AT_FDCWD nor a valid file descriptor open for reading or searching." 2 2 3 This does not work in Haiku hrev57823 (from 2024-07-15): i t fails with error code ENOENT instead.3 This does not work in Haiku hrev57823 (from 2024-07-15): in one case, it behaves as if AT_FDCWD had been specified; in the other case, it fails with error code ENOENT instead. 4 4 5 5 How to reproduce: Compile and run the attached test program. … … 16 16 }}} 17 17 18 Actual output :18 Actual output if a file 'foo' does not exist in the current directory: 19 19 {{{ 20 20 ret = -1, errno == No such file or directory … … 23 23 Kill Thread 24 24 }}} 25 26 Actual output if a file 'foo' does exist in the current directory: 27 {{{ 28 ret = 0 29 ret = -1, errno == No such file or directory 30 a.out: foo.c:41:main: !fail 31 Kill Thread 32 }}} 33 34