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 ned.deily
Recipients Bo98, amgedr, barry, iritkatriel, maggyero, miss-islington, ned.deily, ronaldoussoren, terry.reedy
Date 2022-01-31.00:00:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643587222.79.0.161710298492.issue38295@roundup.psfhosted.org>
In-reply-to
Content
> Is there anything more to do here?

A belated response: probably not, so I'm OK with closing this.

A quick check shows that macOS behavior has changed a bit on more recent releases. On current macOS Big Sur (11.6.3) and Monterey (12.2) releases, Bo's test:

$ python3 -c 'import os; open(os.path.relpath("/tmp/test.txt"), "w")'

now works and Ronald's touch example now fails with a somewhat more meaningful message:

$ touch ../../foo.txt
touch: ../../foo.txt: Read-only file system

In general, though, even on pre-APFS older macOS systems, it is still best to avoid or at least be very careful about using /tmp with any sort of relative path testing because of the linking of /tmp to /private/tmp. :(
History
Date User Action Args
2022-01-31 00:00:22ned.deilysetrecipients: + ned.deily, barry, terry.reedy, ronaldoussoren, maggyero, miss-islington, Bo98, amgedr, iritkatriel
2022-01-31 00:00:22ned.deilysetmessageid: <1643587222.79.0.161710298492.issue38295@roundup.psfhosted.org>
2022-01-31 00:00:22ned.deilylinkissue38295 messages
2022-01-31 00:00:22ned.deilycreate