search for: force_tty_flag

Displaying 3 results from an estimated 3 matches for "force_tty_flag".

2005 Dec 16
1
Force TTY
Hi all, I'm having problems with getting a tty against an extreme switch. I've tried with the -t flag that is supposed to force a tty but it's not working. I checked the code in ssh.c where this option is parsed: case 't': if (tty_flag) force_tty_flag = 1; tty_flag = 1; break; The tty_flag is initialized to 0 and what I can see this flag is always 0 at this stage in the code. Thus it is impossible to set the force_tty_flag to 1. Is this done intentionally or is it a bug? Why the if statement? Best Regards, Olle ________________________...
2004 Apr 01
0
[Bug 829] Don't allocate a tty if -n option is set
...the input. Following patch could be applied: --- openssh-3.8p1.orig/ssh.c Wed Dec 17 06:33:11 2003 +++ openssh-3.8p1/ssh.c Thu Apr 1 09:01:02 2004 @@ -549,7 +549,7 @@ if (no_tty_flag) tty_flag = 0; /* Do not allocate a tty if stdin is not a tty. */ - if (!isatty(fileno(stdin)) && !force_tty_flag) { + if ((!isatty(fileno(stdin)) || stdin_null_flag) && !force_tty_flag) { if (tty_flag) logit("Pseudo-terminal will not be allocated because stdin is not a terminal."); tty_flag = 0; -- Cheers, Ignasi Roca Fujitsu-Siemens Computers ------- You are receiving this m...
2010 Jan 14
1
ssh(1) multiplexing rewrite
...f (errno == EINTR) - continue; - fatal("%s: read %s", __func__, strerror(errno)); - } - i += r; + if (exitval_seen) + fatal("%s: exitval sent twice", __func__); + exitval = buffer_get_int(&m); + exitval_seen = 1; } - close(sock); + close(fd); leave_raw_mode(force_tty_flag); - if (i > (int)sizeof(int)) - fatal("%s: master returned too much data (%d > %lu)", - __func__, i, (u_long)sizeof(int)); + if (muxclient_terminate) { debug2("Exiting on signal %d", muxclient_terminate); - exitval[0] = 255; - } else if (i < (int)sizeof(int)...