Bugzilla – Attachment 3097 Details for
Bug 2801
RemoteCommand: Please allocate TTY, allow overriding command
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Allocate TTY, allow overriding command
remotecommand.patch (text/plain), 834 bytes, created by
main.haarp
on 2017-11-26 02:58:34 AEDT
(
hide
)
Description:
Allocate TTY, allow overriding command
Filename:
MIME Type:
Creator:
main.haarp
Created:
2017-11-26 02:58:34 AEDT
Size:
834 bytes
patch
obsolete
>--- a/ssh.c 2017-10-12 08:25:13.322466154 +0200 >+++ a/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 2801
: 3097