summaryrefslogtreecommitdiff
path: root/source/ap/vim/patches/7.3.082
blob: 5753c05e8fde0c1cf96b179c8d1449a5c37f1f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
To: vim_dev@googlegroups.com
Subject: Patch 7.3.082
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.082
Problem:    Leaking file descriptor when hostname doesn't exist.
Solution:   Remove old debugging lines.
Files:	    src/netbeans.c


*** ../vim-7.3.081/src/netbeans.c	2010-12-08 13:11:15.000000000 +0100
--- src/netbeans.c	2010-12-17 12:13:32.000000000 +0100
***************
*** 323,334 ****
      server.sin_port = htons(port);
      if ((host = gethostbyname(hostname)) == NULL)
      {
- 	if (mch_access(hostname, R_OK) >= 0)
- 	{
- 	    /* DEBUG: input file */
- 	    sd = mch_open(hostname, O_RDONLY, 0);
- 	    goto theend;
- 	}
  	nbdebug(("error in gethostbyname() in netbeans_connect()\n"));
  	PERROR("gethostbyname() in netbeans_connect()");
  	goto theend;
--- 323,328 ----
*** ../vim-7.3.081/src/version.c	2010-12-08 19:56:52.000000000 +0100
--- src/version.c	2010-12-17 12:17:11.000000000 +0100
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     82,
  /**/

-- 
How To Keep A Healthy Level Of Insanity:
1. At lunch time, sit in your parked car with sunglasses on and point
   a hair dryer at passing cars. See if they slow down.

 /// Bram Moolenaar -- Bram@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    ///