[issue40118] os.stat in linux shows the wrong inode

omer sela report at bugs.python.org
Mon Mar 30 11:35:28 EDT 2020


New submission from omer sela <omersela18 at gmail.com>:

when calling os.stat(fd).st_ino on with a file descriptor of a symbolic link it returns the inode of the original file and not of the link (picture attached)

----------
components: Library (Lib)
files: python_bug.png
messages: 365324
nosy: omer sela
priority: normal
severity: normal
status: open
title: os.stat in linux shows the wrong inode
type: behavior
versions: Python 3.7
Added file: https://bugs.python.org/file49015/python_bug.png

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40118>
_______________________________________


More information about the Python-bugs-list mailing list