[issue35677] Do not automount in stat() by default

2022-03-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Glad to see that this old inconsistency was fixed. But seems that if we will add support for statx() we will need to set AT_NO_AUTOMOUNT by default. -- resolution: -> out of date stage: patch review -> resolved status: open -> closed

[issue35677] Do not automount in stat() by default

2022-03-10 Thread Pádraig Brady
Pádraig Brady added the comment: I think this change is not needed as fstatat() implies AT_NO_AUTOMOUNT since Linux 4.11 The fstatat(2) man page is confusing, and I've attempted to clarify with the patch attached to: https://lists.gnu.org/archive/html/coreutils/2022-03/msg00014.html

[issue35677] Do not automount in stat() by default

2019-01-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I was going to merge PR 11455 as a bug fix and backport it to 3.7, and add a new "automount=False" optional parameter in a separate issue. -- ___ Python tracker

[issue35677] Do not automount in stat() by default

2019-01-07 Thread STINNER Victor
STINNER Victor added the comment: What if someone relies on the current behavior of os.stat(filename, dir_fd=fd)? Would it make sense to add a new "automount=False" optional parameter to os.stat()? AT_NO_AUTOMOUNT would only be added if automount is false. -- nosy: +vstinner

[issue35677] Do not automount in stat() by default

2019-01-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch, patch, patch pull_requests: +10924, 10925, 10926 stage: -> patch review ___ Python tracker ___

[issue35677] Do not automount in stat() by default

2019-01-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch, patch pull_requests: +10924, 10925 stage: -> patch review ___ Python tracker ___

[issue35677] Do not automount in stat() by default

2019-01-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +10924 stage: -> patch review ___ Python tracker ___ ___

[issue35677] Do not automount in stat() by default

2019-01-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : 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