This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
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;
  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:09Bo98setrecipients: + Bo98, barry, terry.reedy, ronaldoussoren, ned.deily, maggyero, miss-islington, amgedr
2019-12-17 10:59:08Bo98setmessageid: <>
2019-12-17 10:59:08Bo98linkissue38295 messages
2019-12-17 10:59:08Bo98create