[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LStat server implementation
[Thread Prev] | [Thread Next]
- Subject: Re: LStat server implementation
- From: Bruno Buzzi Brassesco <bruno.brasesco@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 16 Mar 2021 10:27:00 -0300
- To: libssh@xxxxxxxxxx
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 (< bruno.brasesco@xxxxxxxxx>) 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 (< > bruno.brasesco@xxxxxxxxx>) 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 >> >>
LStat server implementation | Bruno Buzzi Brassesco <bruno.brasesco@xxxxxxxxx> |
Re: LStat server implementation | Bruno Buzzi Brassesco <bruno.brasesco@xxxxxxxxx> |