=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/ssh.c,v retrieving revision 1.304 retrieving revision 1.305 diff -u -r1.304 -r1.305 --- src/usr.bin/ssh/ssh.c 2007/10/29 01:55:04 1.304 +++ src/usr.bin/ssh/ssh.c 2007/10/29 06:54:50 1.305 @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.304 2007/10/29 01:55:04 dtucker Exp $ */ +/* $OpenBSD: ssh.c,v 1.305 2007/10/29 06:54:50 dtucker Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -982,6 +982,11 @@ /* Initiate port forwardings. */ ssh_init_forwarding(); + + /* Execute a local command */ + if (options.local_command != NULL && + options.permit_local_command) + ssh_local_cmd(options.local_command); /* If requested, let ssh continue in the background. */ if (fork_after_authentication_flag)