Bugzilla – Attachment 891 Details for
Bug 829
Don't allocate a tty if -n option is set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't allocate tty when -n
ssh-dashn-notty.diff (text/plain), 608 bytes, created by
Damien Miller
on 2005-04-21 18:05:44 AEST
(
hide
)
Description:
Don't allocate tty when -n
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2005-04-21 18:05:44 AEST
Size:
608 bytes
patch
obsolete
>Index: ssh.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/ssh.c,v >retrieving revision 1.235 >diff -u -p -r1.235 ssh.c >--- ssh.c 6 Apr 2005 12:26:06 -0000 1.235 >+++ ssh.c 21 Apr 2005 08:04:43 -0000 >@@ -545,7 +545,7 @@ again: > 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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 829
: 891