mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 08:14:24 +02:00
- djm@cvs.openbsd.org 2005/04/21 11:47:19
[ssh.c] don't allocate a pty when -n flag (/dev/null stdin) is set, patch from ignasi.roca AT fujitsu-siemens.com (bz #829); ok dtucker@
This commit is contained in:
parent
167ea5d026
commit
ddee575b98
@ -27,6 +27,10 @@
|
|||||||
[ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 ssh_config.5 sshd.8]
|
[ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh.1 ssh_config.5 sshd.8]
|
||||||
[sshd_config.5] OpenSSH doesn't ever look at the $HOME environment
|
[sshd_config.5] OpenSSH doesn't ever look at the $HOME environment
|
||||||
variable, so don't say that we do (bz #623); ok deraadt@
|
variable, so don't say that we do (bz #623); ok deraadt@
|
||||||
|
- djm@cvs.openbsd.org 2005/04/21 11:47:19
|
||||||
|
[ssh.c]
|
||||||
|
don't allocate a pty when -n flag (/dev/null stdin) is set, patch from
|
||||||
|
ignasi.roca AT fujitsu-siemens.com (bz #829); ok dtucker@
|
||||||
|
|
||||||
20050524
|
20050524
|
||||||
- (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
|
- (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec]
|
||||||
@ -2526,4 +2530,4 @@
|
|||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.3768 2005/05/26 02:04:02 djm Exp $
|
$Id: ChangeLog,v 1.3769 2005/05/26 02:05:05 djm Exp $
|
||||||
|
4
ssh.c
4
ssh.c
@ -40,7 +40,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: ssh.c,v 1.235 2005/04/06 12:26:06 dtucker Exp $");
|
RCSID("$OpenBSD: ssh.c,v 1.236 2005/04/21 11:47:19 djm Exp $");
|
||||||
|
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
@ -550,7 +550,7 @@ again:
|
|||||||
if (no_tty_flag)
|
if (no_tty_flag)
|
||||||
tty_flag = 0;
|
tty_flag = 0;
|
||||||
/* Do not allocate a tty if stdin is not a tty. */
|
/* 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)
|
if (tty_flag)
|
||||||
logit("Pseudo-terminal will not be allocated because stdin is not a terminal.");
|
logit("Pseudo-terminal will not be allocated because stdin is not a terminal.");
|
||||||
tty_flag = 0;
|
tty_flag = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user