Bugzilla – Attachment 3067 Details for
Bug 2103
remote command as an option in ssh_config
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
allow overriding RemoteCommand, allocate TTY
foo.patch (text/plain), 834 bytes, created by
main.haarp
on 2017-10-12 17:41:44 AEDT
(
hide
)
Description:
allow overriding RemoteCommand, allocate TTY
Filename:
MIME Type:
Creator:
main.haarp
Created:
2017-10-12 17:41:44 AEDT
Size:
834 bytes
patch
obsolete
>--- a/ssh.c 2017-10-12 08:25:13.322466154 +0200 >+++ b/ssh.c 2017-10-12 08:33:56.719120191 +0200 >@@ -1154,8 +1154,7 @@ main(int ac, char **av) > options.use_privileged_port = 0; > #endif > >- if (buffer_len(&command) != 0 && options.remote_command != NULL) >- fatal("Cannot execute command-line and remote command."); >+ if (buffer_len(&command) != 0) options.remote_command = NULL; > > /* Cannot fork to background if no command. */ > if (fork_after_authentication_flag && buffer_len(&command) == 0 && >@@ -1171,7 +1156,7 @@ main(int ac, char **av) > tty_flag = 1; > > /* Allocate a tty by default if no command specified. */ >- if (buffer_len(&command) == 0 && options.remote_command == NULL) >+ if (buffer_len(&command) == 0 || options.remote_command != NULL) > tty_flag = options.request_tty != REQUEST_TTY_NO; > > /* Force no tty */
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 2103
:
2348
|
2349
|
2350
|
2839
| 3067