Both ssh_sftp:read_file_info/2,3 and ssh_sftp:read_link_info/2,3 return incorrect record file_info #7897
Labels
bug
Issue is reported as a bug
Planned
Focus issue added in sprint planning
priority:medium
team:PS
Assigned to OTP team PS
Describe the bug
ssh_sftp:read_file_info/2,3
andssh_sftp:read_link_info/2,3
return recordfile_info
withuid
andgid
string values, while they must be integers.To Reproduce
Read any file via one of those functions.
Expected behavior
ssh_sftp:read_file_info/2,3
andssh_sftp:read_link_info/2,3
return the record in the same format as functions with the same names fromfile
module.Affected versions
Reproduced on 24.2 and 26.1.2, but in the past was reproduced on older OTP versions as well.
Additional context
The incorrect record can't be used as is, because functions like
ssh_stfp:write_file_info
raise exceptions because incorrect type ofuid
andgid
in the record.The text was updated successfully, but these errors were encountered: