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

2020-04-03 Thread Ammar Askar


Ammar Askar  added the comment:

As noted in the documentation for os.stat 
(https://docs.python.org/3.9/library/os.html#os.stat):

> This function normally follows symlinks; to stat a symlink add the argument 
> follow_symlinks=False, or use lstat().

--
nosy: +ammar2
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-03-30 Thread omer sela


New submission from omer sela :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com