Hi, This has been fixed: attributes->permissions must be a bitOr operation between SSH_S_IFxxx constant and linux file permission (as integer). If permissions is set in this way and then attributes->type is set with 1,2,3,4 or 5 --> everything works as expected.
regards, bruno El vie, 12 mar 2021 a las 12:51, Bruno Buzzi Brassesco (< [email protected]>) escribió: > Hi, > Also if the server use (sftp_lstat) to generate the sftp attributes then > at client level i get (after ls -l somefile): > ID mismatch (1 != 2) > > > El vie, 12 mar 2021 a las 12:03, Bruno Buzzi Brassesco (< > [email protected]>) escribió: > >> Hi All, >> The sftp server is almost finished with libssh. >> Thanks to all responses of this list. >> >> There is still an issue with LStat. >> The client command: ls -l somefile >> It always answers "?" in the file type, like: >> ?-w--wx-w >> >> The attribute that handles this is ? >> sftp_attributes_struc.type ? >> And for a regular file it should be "SSH_FILEXFER_TYPE_REGULAR" ? >> >> regards, >> bruno >> >>
