Skip to content

Commit ecd1575

Browse files
committed
Revert "Only use FileId128 when it is non-zero"
This reverts commit 7a30dba.
1 parent 7a30dba commit ecd1575

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Python/fileutils.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,13 +1166,8 @@ _Py_stat_basic_info_to_stat(FILE_STAT_BASIC_INFORMATION *info,
11661166
/* File systems with less than 128-bits zero pad into this field */
11671167
id_128_to_ino file_id;
11681168
file_id.id = info->FileId128;
1169-
if (file_id.st_ino && file_id.st_ino_high) {
1170-
result->st_ino = file_id.st_ino;
1171-
result->st_ino_high = file_id.st_ino_high;
1172-
} else {
1173-
result->st_ino = info->FileId.QuadPart;
1174-
result->st_ino_high = 0;
1175-
}
1169+
result->st_ino = file_id.st_ino;
1170+
result->st_ino_high = file_id.st_ino_high;
11761171
/* bpo-37834: Only actual symlinks set the S_IFLNK flag. But lstat() will
11771172
open other name surrogate reparse points without traversing them. To
11781173
detect/handle these, check st_file_attributes and st_reparse_tag. */

0 commit comments

Comments
 (0)