]> granicus.if.org Git - vim/commitdiff
patch 8.2.3502: cannot enter password in shell command v8.2.3502
authorBram Moolenaar <Bram@vim.org>
Wed, 13 Oct 2021 09:05:30 +0000 (10:05 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 13 Oct 2021 09:05:30 +0000 (10:05 +0100)
Problem:    Cannot enter password in shell command.
Solution:   Revert patch 8.2.2919.

src/os_unix.c
src/version.c

index d192b6bcfab059c6712b3e3f0cddd5f7dd3d13fa..9dde754f3ae40036aa272750105a916271956ea7 100644 (file)
@@ -4806,6 +4806,11 @@ mch_call_shell_fork(
                    // push stream discipline modules
                    if (options & SHELL_COOKED)
                        setup_slavepty(pty_slave_fd);
+#  ifdef TIOCSCTTY
+                   // Try to become controlling tty (probably doesn't work,
+                   // unless run by root)
+                   ioctl(pty_slave_fd, TIOCSCTTY, (char *)NULL);
+#  endif
                }
 # endif
                set_default_child_environment(FALSE);
index 1f292bbde68cb6bdfe742052227d3cbe2a358d43..7640153215f87ec9ea2d8e02d86a5bd6643e3559 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3502,
 /**/
     3501,
 /**/