mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
Leave out UNKNOWN_FD as the possible rtpes for stdio descriptors
An assert(pio->type != UNKNOWN_FD) in fd_table_set() causes that case to fail early anyway.
This commit is contained in:
parent
a8adf827bd
commit
efdb4454c5
@ -93,9 +93,7 @@ fd_table_initialize()
|
||||
|
||||
stdio_mode_env = getenv("OPENSSH_STDIO_MODE");
|
||||
if (stdio_mode_env != NULL) {
|
||||
if (strcmp(stdio_mode_env, "unknown") == 0)
|
||||
stdio_mode = UNKNOWN_FD;
|
||||
else if (strcmp(stdio_mode_env, "sock") == 0)
|
||||
if (strcmp(stdio_mode_env, "sock") == 0)
|
||||
stdio_mode = SOCK_FD;
|
||||
else if (strcmp(stdio_mode_env, "nonsock") == 0)
|
||||
stdio_mode = NONSOCK_FD;
|
||||
|
Loading…
x
Reference in New Issue
Block a user