diff options
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.304 2007/10/29 01:55:04 dtucker Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.305 2007/10/29 06:54:50 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -1002,6 +1002,11 @@ ssh_session(void) | |||
1002 | /* Initiate port forwardings. */ | 1002 | /* Initiate port forwardings. */ |
1003 | ssh_init_forwarding(); | 1003 | ssh_init_forwarding(); |
1004 | 1004 | ||
1005 | /* Execute a local command */ | ||
1006 | if (options.local_command != NULL && | ||
1007 | options.permit_local_command) | ||
1008 | ssh_local_cmd(options.local_command); | ||
1009 | |||
1005 | /* If requested, let ssh continue in the background. */ | 1010 | /* If requested, let ssh continue in the background. */ |
1006 | if (fork_after_authentication_flag) | 1011 | if (fork_after_authentication_flag) |
1007 | if (daemon(1, 1) < 0) | 1012 | if (daemon(1, 1) < 0) |