Core/SSH: Minor fixes & decprecated methods are marked with [[deprecated]] attribute.

git-svn-id: svn://ultimatepp.org/upp/trunk@14997 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
oblivion 2020-09-07 18:53:40 +00:00
commit a403e111d8
6 changed files with 11 additions and 10 deletions

View file

@ -601,10 +601,8 @@ FileSystemInfo::FileInfo SFtp::DirEntry::ToFileInfo() const
bool SFtp::DirEntry::CanMode(dword u, dword g, dword o) const
{
return a->flags & LIBSSH2_SFTP_ATTR_PERMISSIONS &&
a->permissions & o ||
a->permissions & g ||
a->permissions & u;
return (a->flags & LIBSSH2_SFTP_ATTR_PERMISSIONS)
&& (a->permissions & o || a->permissions & g || a->permissions & u);
}
void SFtp::DirEntry::Zero()