changeset 25937:8bcbff752864 v8.2.3502

patch 8.2.3502: cannot enter password in shell command Commit: https://github.com/vim/vim/commit/fff10d9a76099aa9b944f3c33a911127ca1a0c72 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 13 10:05:30 2021 +0100 patch 8.2.3502: cannot enter password in shell command Problem: Cannot enter password in shell command. Solution: Revert patch 8.2.2919.
author Bram Moolenaar <Bram@vim.org>
date Wed, 13 Oct 2021 11:15:04 +0200
parents 76c5e7e484d1
children 26aa27d37199
files src/os_unix.c src/version.c
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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);
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3502,
+/**/
     3501,
 /**/
     3500,