Subject: | Handling of Extended File Attributes |
When doing an ls on a remote server if the server returns files that
have extended attributes (this occured when accessing a Unix VM running
on OS/390) the extended attributes are not read from the buffer leading
to corruption and invalid data in the file list.
I added the following code to new_from_buffer in Attributes.pm
(following the ATTR_ACMODTIME block) to correctly decode the extended
attributes.
if($self->{flags} & SSH2_FILEXFER_ATTR_EXTENDED) {
$self->{ext_count} = $buf->get_int32;
my $i = 0;
while($i < $self->{ext_count}) {
$self->{ext_name}[$i] = $buf->get_str;
$self->{ext_data}[$i] = $buf->get_str;
$i++;
}
}
I didn't make any provision for setting of extended attributes.