mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-25 15:04:54 +02:00
3-7 C4
This commit is contained in:
parent
2305a16980
commit
04ae5b8469
4
misc.c
4
misc.c
@ -81,7 +81,7 @@ chop(char *s)
|
|||||||
int
|
int
|
||||||
set_nonblock(int fd)
|
set_nonblock(int fd)
|
||||||
{
|
{
|
||||||
#ifdef WIN32_FIXME
|
#if(0)//def WIN32_FIXME
|
||||||
|
|
||||||
int on = 1;
|
int on = 1;
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ set_nonblock(int fd)
|
|||||||
int
|
int
|
||||||
unset_nonblock(int fd)
|
unset_nonblock(int fd)
|
||||||
{
|
{
|
||||||
#ifdef WIN32_FIXME
|
#if(0)//def WIN32_FIXME
|
||||||
|
|
||||||
int on = 0;
|
int on = 0;
|
||||||
|
|
||||||
|
4
packet.c
4
packet.c
@ -1314,7 +1314,7 @@ ssh_packet_read_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p)
|
|||||||
struct timeval timeout, start, *timeoutp = NULL;
|
struct timeval timeout, start, *timeoutp = NULL;
|
||||||
|
|
||||||
DBG(debug("packet_read()"));
|
DBG(debug("packet_read()"));
|
||||||
#if(0)//ndef WIN32_FIXME
|
#if(1)//ndef WIN32_FIXME
|
||||||
int d = howmany(state->connection_in + 1, NFDBITS);
|
int d = howmany(state->connection_in + 1, NFDBITS);
|
||||||
d = sizeof(fd_mask);
|
d = sizeof(fd_mask);
|
||||||
setp = calloc(howmany(state->connection_in + 1,
|
setp = calloc(howmany(state->connection_in + 1,
|
||||||
@ -1354,7 +1354,7 @@ ssh_packet_read_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p)
|
|||||||
* Otherwise, wait for some data to arrive, add it to the
|
* Otherwise, wait for some data to arrive, add it to the
|
||||||
* buffer, and try again.
|
* buffer, and try again.
|
||||||
*/
|
*/
|
||||||
#if(0)//ndef WIN32_FIXME
|
#if(1)//ndef WIN32_FIXME
|
||||||
memset(setp, 0, howmany(state->connection_in + 1,
|
memset(setp, 0, howmany(state->connection_in + 1,
|
||||||
NFDBITS) * sizeof(fd_mask));
|
NFDBITS) * sizeof(fd_mask));
|
||||||
#else
|
#else
|
||||||
|
@ -335,7 +335,7 @@ read_passphrase(const char *prompt, int flags)
|
|||||||
* Show prompt for user.
|
* Show prompt for user.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
write(STDERR_FILENO, prompt, strlen(prompt));
|
write(STDOUT_FILENO, prompt, strlen(prompt));
|
||||||
|
|
||||||
len = retr = 0;
|
len = retr = 0;
|
||||||
int bufsize = sizeof(buf);
|
int bufsize = sizeof(buf);
|
||||||
@ -368,7 +368,7 @@ read_passphrase(const char *prompt, int flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
buf[len] = '\0' ; // get rid of the cr/lf
|
buf[len] = '\0' ; // get rid of the cr/lf
|
||||||
write(STDERR_FILENO,"\n", strlen("\n")); // show a newline as we do not echo password or the line
|
write(STDOUT_FILENO,"\n", strlen("\n")); // show a newline as we do not echo password or the line
|
||||||
|
|
||||||
ret = xstrdup(buf);
|
ret = xstrdup(buf);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user