artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3edf6b2
)
Do not leak symtab fd (if at fd limit might even prevent correct operation)
author
deraadt
<deraadt@openbsd.org>
Mon, 30 Dec 2013 22:01:23 +0000
(22:01 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 30 Dec 2013 22:01:23 +0000
(22:01 +0000)
from Loganaden Velvindron
sbin/restore/symtab.c
patch
|
blob
|
history
diff --git
a/sbin/restore/symtab.c
b/sbin/restore/symtab.c
index
c1a2dd7
..
5240d2e
100644
(file)
--- a/
sbin/restore/symtab.c
+++ b/
sbin/restore/symtab.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: symtab.c,v 1.2
0 2013/04/24 13:46:29
deraadt Exp $ */
+/* $OpenBSD: symtab.c,v 1.2
1 2013/12/30 22:01:23
deraadt Exp $ */
/* $NetBSD: symtab.c,v 1.10 1997/03/19 08:42:54 lukem Exp $ */
/*
@@
-553,6
+553,7
@@
initsymtable(char *filename)
warn("read");
panic("cannot read symbol table file %s\n", filename);
}
+ close(fd);
switch (command) {
case 'r':
/*