[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

[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: no