Changes between Initial Version and Version 1 of Ticket #19058


Ignore:
Timestamp:
Sep 3, 2024, 11:04:59 AM (2 months ago)
Author:
bhaible
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19058 – Description

    initial v1  
    11POSIX 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."
    22
    3 This does not work in Haiku hrev57823 (from 2024-07-15): it fails with error code ENOENT instead.
     3This 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.
    44
    55How to reproduce: Compile and run the attached test program.
     
    1616}}}
    1717
    18 Actual output:
     18Actual output if a file 'foo' does not exist in the current directory:
    1919{{{
    2020ret = -1, errno == No such file or directory
     
    2323Kill Thread
    2424}}}
     25
     26Actual output if a file 'foo' does exist in the current directory:
     27{{{
     28ret = 0
     29ret = -1, errno == No such file or directory
     30a.out: foo.c:41:main: !fail
     31Kill Thread
     32}}}
     33
     34