Patch 8.2.1091
Problem:    No check if opening a pty works.
Solution:   Check for invalid file descriptor.
Files:      src/os_unix.c


*** ../vim-8.2.1090/src/os_unix.c       2020-06-10 20:56:55.025354576 +0200
--- src/os_unix.c       2020-06-29 22:39:40.493045712 +0200
***************
*** 5922,5927 ****
--- 5922,5929 ----
      channel_T *channel;
  
      open_pty(&pty_master_fd, &pty_slave_fd, &job->jv_tty_out, 
&job->jv_tty_in);
+     if (pty_master_fd < 0 || pty_slave_fd < 0)
+       return FAIL;
      close(pty_slave_fd);
  
      channel = add_channel();
*** ../vim-8.2.1090/src/version.c       2020-06-29 22:31:32.403297618 +0200
--- src/version.c       2020-06-29 22:40:21.040860178 +0200
***************
*** 756,757 ****
--- 756,759 ----
  {   /* Add new patch number below this line */
+ /**/
+     1091,
  /**/

-- 
The Characters and incidents portrayed and the names used are fictitious and
any similarity to the names, characters, or history of any person is entirely
accidental and unintentional.
                                  Signed RICHARD M. NIXON
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202006292041.05TKfBao717991%40masaka.moolenaar.net.

Raspunde prin e-mail lui