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 serhiy.storchaka
Recipients larry, serhiy.storchaka
Date 2019-01-07.09:17:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There is a subtle difference between implementations of os.stat() that use system calls stat() and fstatat(). On Linux, fstatat() by default automounts the terminal ("basename") component of pathname if it is a directory that is an automount point. The Linux-specific AT_NO_AUTOMOUNT flag should be set to prevent automounting. Both stat() and lstat() act as though AT_NO_AUTOMOUNT was set.

Therefore os.stat() should set AT_NO_AUTOMOUNT if it is defined to simulate the behavior of stat() and lstat(). New keyword parameter can be added to os.stat() in new Python release to control this behavior.

There is the same issue with DirEntry.stat().
Date User Action Args
2019-01-07 09:18:05serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2019-01-07 09:17:58serhiy.storchakasetmessageid: <>
2019-01-07 09:17:58serhiy.storchakalinkissue35677 messages
2019-01-07 09:17:58serhiy.storchakacreate