Skip to content

Commit e4e4d5d

Browse files
committed
Remove st_dev and st_ino fallback values
1 parent 9c7338a commit e4e4d5d

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

Python/fileutils.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,11 +1124,6 @@ _Py_attribute_data_to_stat(FILE_STANDARD_INFO* standard_info, ULONG reparse_tag,
11241124
file_id.id = id_info->FileId;
11251125
result->st_ino = file_id.st_ino;
11261126
result->st_ino_high = file_id.st_ino_high;
1127-
} else {
1128-
// use these fallback values for systems where it's not possible
1129-
// to obtain VolumeSerialNumber / FileId (e.g. Windows UWP)
1130-
result->st_dev = 1;
1131-
result->st_ino = basic_info->CreationTime.QuadPart;
11321127
}
11331128

11341129
result->st_file_attributes = basic_info->FileAttributes;

0 commit comments

Comments
 (0)