Karsten Hopp c9dcf7
To: vim-dev@vim.org
Karsten Hopp c9dcf7
Subject: Patch 7.0.132
Karsten Hopp c9dcf7
Fcc: outbox
Karsten Hopp c9dcf7
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c9dcf7
Mime-Version: 1.0
Karsten Hopp c9dcf7
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp c9dcf7
Content-Transfer-Encoding: 8bit
Karsten Hopp c9dcf7
------------
Karsten Hopp c9dcf7
Karsten Hopp c9dcf7
Patch 7.0.132 (after 7.0.130)
Karsten Hopp c9dcf7
Problem:    Win32: Crash when Vim reads from stdin.
Karsten Hopp c9dcf7
Solution:   Only use mch_nodetype() when there is a file name.
Karsten Hopp c9dcf7
Files:	    src/fileio.c
Karsten Hopp c9dcf7
Karsten Hopp c9dcf7
Karsten Hopp c9dcf7
*** ../vim-7.0.131/src/fileio.c	Tue Oct 10 18:43:50 2006
Karsten Hopp c9dcf7
--- src/fileio.c	Thu Oct 12 20:50:35 2006
Karsten Hopp c9dcf7
***************
Karsten Hopp c9dcf7
*** 416,435 ****
Karsten Hopp c9dcf7
  	    msg_scroll = msg_save;
Karsten Hopp c9dcf7
  	    return FAIL;
Karsten Hopp c9dcf7
  	}
Karsten Hopp c9dcf7
-     }
Karsten Hopp c9dcf7
- #endif
Karsten Hopp c9dcf7
  
Karsten Hopp c9dcf7
! #if defined(MSDOS) || defined(MSWIN) || defined(OS2)
Karsten Hopp c9dcf7
!     /*
Karsten Hopp c9dcf7
!      * MS-Windows allows opening a device, but we will probably get stuck
Karsten Hopp c9dcf7
!      * trying to read it.
Karsten Hopp c9dcf7
!      */
Karsten Hopp c9dcf7
!     if (!p_odev && mch_nodetype(fname) == NODE_WRITABLE)
Karsten Hopp c9dcf7
!     {
Karsten Hopp c9dcf7
! 	filemess(curbuf, fname, (char_u *)_("is a device (disabled with 'opendevice' option"), 0);
Karsten Hopp c9dcf7
! 	msg_end();
Karsten Hopp c9dcf7
! 	msg_scroll = msg_save;
Karsten Hopp c9dcf7
! 	return FAIL;
Karsten Hopp c9dcf7
      }
Karsten Hopp c9dcf7
  #endif
Karsten Hopp c9dcf7
  
Karsten Hopp c9dcf7
--- 416,435 ----
Karsten Hopp c9dcf7
  	    msg_scroll = msg_save;
Karsten Hopp c9dcf7
  	    return FAIL;
Karsten Hopp c9dcf7
  	}
Karsten Hopp c9dcf7
  
Karsten Hopp c9dcf7
! # if defined(MSDOS) || defined(MSWIN) || defined(OS2)
Karsten Hopp c9dcf7
! 	/*
Karsten Hopp c9dcf7
! 	 * MS-Windows allows opening a device, but we will probably get stuck
Karsten Hopp c9dcf7
! 	 * trying to read it.
Karsten Hopp c9dcf7
! 	 */
Karsten Hopp c9dcf7
! 	if (!p_odev && mch_nodetype(fname) == NODE_WRITABLE)
Karsten Hopp c9dcf7
! 	{
Karsten Hopp c9dcf7
! 	    filemess(curbuf, fname, (char_u *)_("is a device (disabled with 'opendevice' option"), 0);
Karsten Hopp c9dcf7
! 	    msg_end();
Karsten Hopp c9dcf7
! 	    msg_scroll = msg_save;
Karsten Hopp c9dcf7
! 	    return FAIL;
Karsten Hopp c9dcf7
! 	}
Karsten Hopp c9dcf7
! # endif
Karsten Hopp c9dcf7
      }
Karsten Hopp c9dcf7
  #endif
Karsten Hopp c9dcf7
  
Karsten Hopp c9dcf7
*** ../vim-7.0.131/src/version.c	Tue Oct 10 21:56:37 2006
Karsten Hopp c9dcf7
--- src/version.c	Thu Oct 12 21:13:34 2006
Karsten Hopp c9dcf7
***************
Karsten Hopp c9dcf7
*** 668,669 ****
Karsten Hopp c9dcf7
--- 668,671 ----
Karsten Hopp c9dcf7
  {   /* Add new patch number below this line */
Karsten Hopp c9dcf7
+ /**/
Karsten Hopp c9dcf7
+     132,
Karsten Hopp c9dcf7
  /**/
Karsten Hopp c9dcf7
Karsten Hopp c9dcf7
-- 
Karsten Hopp c9dcf7
hundred-and-one symptoms of being an internet addict:
Karsten Hopp c9dcf7
31. You code your homework in HTML and give your instructor the URL.
Karsten Hopp c9dcf7
Karsten Hopp c9dcf7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c9dcf7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c9dcf7
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp c9dcf7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///