home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.0 / 7.0.132 < prev    next >
Encoding:
Internet Message Format  |  2006-10-11  |  2.1 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.0.132
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.0.132 (after 7.0.130)
  11. Problem:    Win32: Crash when Vim reads from stdin.
  12. Solution:   Only use mch_nodetype() when there is a file name.
  13. Files:        src/fileio.c
  14.  
  15.  
  16. *** ../vim-7.0.131/src/fileio.c    Tue Oct 10 18:43:50 2006
  17. --- src/fileio.c    Thu Oct 12 20:50:35 2006
  18. ***************
  19. *** 416,435 ****
  20.           msg_scroll = msg_save;
  21.           return FAIL;
  22.       }
  23. -     }
  24. - #endif
  25.   
  26. ! #if defined(MSDOS) || defined(MSWIN) || defined(OS2)
  27. !     /*
  28. !      * MS-Windows allows opening a device, but we will probably get stuck
  29. !      * trying to read it.
  30. !      */
  31. !     if (!p_odev && mch_nodetype(fname) == NODE_WRITABLE)
  32. !     {
  33. !     filemess(curbuf, fname, (char_u *)_("is a device (disabled with 'opendevice' option"), 0);
  34. !     msg_end();
  35. !     msg_scroll = msg_save;
  36. !     return FAIL;
  37.       }
  38.   #endif
  39.   
  40. --- 416,435 ----
  41.           msg_scroll = msg_save;
  42.           return FAIL;
  43.       }
  44.   
  45. ! # if defined(MSDOS) || defined(MSWIN) || defined(OS2)
  46. !     /*
  47. !      * MS-Windows allows opening a device, but we will probably get stuck
  48. !      * trying to read it.
  49. !      */
  50. !     if (!p_odev && mch_nodetype(fname) == NODE_WRITABLE)
  51. !     {
  52. !         filemess(curbuf, fname, (char_u *)_("is a device (disabled with 'opendevice' option"), 0);
  53. !         msg_end();
  54. !         msg_scroll = msg_save;
  55. !         return FAIL;
  56. !     }
  57. ! # endif
  58.       }
  59.   #endif
  60.   
  61. *** ../vim-7.0.131/src/version.c    Tue Oct 10 21:56:37 2006
  62. --- src/version.c    Thu Oct 12 21:13:34 2006
  63. ***************
  64. *** 668,669 ****
  65. --- 668,671 ----
  66.   {   /* Add new patch number below this line */
  67. + /**/
  68. +     132,
  69.   /**/
  70.  
  71. -- 
  72. hundred-and-one symptoms of being an internet addict:
  73. 31. You code your homework in HTML and give your instructor the URL.
  74.  
  75.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  76. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  77. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  78.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  79.