summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAli Polatel <hawking@gentoo.org>2008-01-09 21:13:59 +0000
committerAli Polatel <hawking@gentoo.org>2008-01-09 21:13:59 +0000
commitabe95f5ea96cc307a4a984029aaf6d88f4534efd (patch)
tree47bcadfd6eb8f8bcd4d0c76ad4de335acffcbb07 /eclass
parentbump to 2.20.3 (diff)
downloadgentoo-2-abe95f5ea96cc307a4a984029aaf6d88f4534efd.tar.gz
gentoo-2-abe95f5ea96cc307a4a984029aaf6d88f4534efd.tar.bz2
gentoo-2-abe95f5ea96cc307a4a984029aaf6d88f4534efd.zip
Close file handles in gawk code to avoid leakage, bug 205037
Diffstat (limited to 'eclass')
-rw-r--r--eclass/vim.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/vim.eclass b/eclass/vim.eclass
index b8a87fcb86ce..1291d7a8bb55 100644
--- a/eclass/vim.eclass
+++ b/eclass/vim.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.168 2007/11/07 15:01:18 hawking Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/vim.eclass,v 1.169 2008/01/09 21:13:59 hawking Exp $
# Authors:
# Ryan Phillips <rphillips@gentoo.org>
@@ -188,6 +188,8 @@ apply_vim_patches() {
next
}
}
+ # Close the file to avoid leakage, bug 205037
+ close(thisfile)
# Print the previous lines and start printing
print firstlines
printing = 1