Merge pull request #791 from ejohnstown/sftp-symlink

Fix SFTP Symlink Indication
pull/792/head
David Garske 2025-03-20 10:53:29 -07:00 committed by GitHub
commit 85bc7ba413
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -2612,10 +2612,10 @@ static int SFTP_CreateLongName(WS_SFTPNAME* name)
word32 tmp = atr->per;
i = 0;
if (tmp & FILEATRB_PER_DIR) {
if ((tmp & FILEATRB_PER_MASK_TYPE) == FILEATRB_PER_DIR) {
perm[i++] = 'd';
}
else if (tmp & FILEATRB_PER_LINK) {
else if ((tmp & FILEATRB_PER_MASK_TYPE) == FILEATRB_PER_LINK) {
perm[i++] = 'l';
}
else {