Skip to content
Prev Previous commit
Remove st_dev and st_ino fallback values
  • Loading branch information
thexai committed Jul 24, 2026
commit e4e4d5d55c5daf7f6778b4142f57f150e89fea47
5 changes: 0 additions & 5 deletions Python/fileutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1124,11 +1124,6 @@ _Py_attribute_data_to_stat(FILE_STANDARD_INFO* standard_info, ULONG reparse_tag,
file_id.id = id_info->FileId;
result->st_ino = file_id.st_ino;
result->st_ino_high = file_id.st_ino_high;
Comment thread
thexai marked this conversation as resolved.
} else {
// use these fallback values for systems where it's not possible
// to obtain VolumeSerialNumber / FileId (e.g. Windows UWP)
result->st_dev = 1;
result->st_ino = basic_info->CreationTime.QuadPart;
}

result->st_file_attributes = basic_info->FileAttributes;
Expand Down
Loading