Author Bo98
Recipients Bo98, amgedr, barry, maggyero, miss-islington, ned.deily, ronaldoussoren, terry.reedy
Date 2019-12-17.10:59:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576580348.95.0.301730873247.issue38295@roundup.psfhosted.org>
In-reply-to
Content
Indeed. The issue can be trivially reproduced with:

```
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <unistd.h>

int main()
{
  char buf[255];
  printf("Current dir: %s\n", getcwd(buf, 255));

  int fd = open("../../tmp/test.txt", O_WRONLY | O_CREAT);
  if (fd < 0)
  {
    printf("errno %d\n", errno);
    return 1;
  }
  close(fd);
  printf("Success\n");
  return 0;
}
```

and running it in /private/tmp.

I filed FB7467762 at the end of November. Downstream projects meanwhile are working around the issue by resolving the file path before passing it into `open`.
History
Date User Action Args
2019-12-17 10:59:09Bo98setrecipients: + Bo98, barry, terry.reedy, ronaldoussoren, ned.deily, maggyero, miss-islington, amgedr
2019-12-17 10:59:08Bo98setmessageid: <1576580348.95.0.301730873247.issue38295@roundup.psfhosted.org>
2019-12-17 10:59:08Bo98linkissue38295 messages
2019-12-17 10:59:08Bo98create