Bo Anderson <[email protected]> added the comment:
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`.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue38295>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com