Skip to content

Commit

Permalink
Merge pull request wolfSSL#653 from JacobBarthelmeh/sftp_large
Browse files Browse the repository at this point in the history
fix for build on windows, and fix for sftp file transfer from windows
  • Loading branch information
douzzer authored Feb 2, 2024
2 parents 53a82e7 + 23e8405 commit 94354d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/wolfsshd/wolfsshd.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,8 +904,8 @@ static int SHELL_Subsystem(WOLFSSHD_CONNECTION* conn, WOLFSSH* ssh,
CreatePipe(&cnslIn, &ptyIn, NULL, 0);
CreatePipe(&ptyOut, &cnslOut, NULL, 0);

cord.X = ssh->curX;
cord.Y = ssh->curY;
cord.X = ssh->widthChar;
cord.Y = ssh->heightRows;

/* Sanity check on cord values, if 0 than assume was not set.
* (can happen with exec and not req-pty message)
Expand Down
3 changes: 2 additions & 1 deletion src/wolfsftp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4489,7 +4489,8 @@ int SFTP_GetAttributes(void* fs, const char* fileName, WS_SFTP_FILEATRB* atr,
atr->flags |= WOLFSSH_FILEATRB_PERM;
atr->per = 0555 |
(stats.dwFileAttributes | FILE_ATTRIBUTE_READONLY ? 0 : 0200);
atr->per |= (stats.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? 0x4000:0;
atr->per |= (stats.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ? 0x4000:
FILEATRB_PER_FILE;

#if 0
/* @TODO handle the constellation of possible Windows FILETIMEs */
Expand Down

0 comments on commit 94354d4

Please sign in to comment.