Message358541
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`. |
|
Date |
User |
Action |
Args |
2019-12-17 10:59:09 | Bo98 | set | recipients:
+ Bo98, barry, terry.reedy, ronaldoussoren, ned.deily, maggyero, miss-islington, amgedr |
2019-12-17 10:59:08 | Bo98 | set | messageid: <1576580348.95.0.301730873247.issue38295@roundup.psfhosted.org> |
2019-12-17 10:59:08 | Bo98 | link | issue38295 messages |
2019-12-17 10:59:08 | Bo98 | create | |
|