Author serhiy.storchaka
Recipients larry, serhiy.storchaka
Date 2019-01-07.09:17:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546852678.92.0.232634094535.issue35677@roundup.psfhosted.org>
In-reply-to
Content
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().
History
Date User Action Args
2019-01-07 09:18:05serhiy.storchakasetrecipients: + serhiy.storchaka, larry
2019-01-07 09:17:58serhiy.storchakasetmessageid: <1546852678.92.0.232634094535.issue35677@roundup.psfhosted.org>
2019-01-07 09:17:58serhiy.storchakalinkissue35677 messages
2019-01-07 09:17:58serhiy.storchakacreate