aboutsummaryrefslogtreecommitdiff
path: root/package/gawk/gawk-3.1.5-core.patch
diff options
context:
space:
mode:
authorGravatar Gustavo Zacarias <gustavo@zacarias.com.ar>2010-06-07 11:35:58 -0300
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2010-06-07 22:30:57 +0200
commit8cd06967b9beb025ca37f695f18beb6dc45d6a85 (patch)
treef185109b2d8f42d2e69536290636747111148a62 /package/gawk/gawk-3.1.5-core.patch
parentcffb9cf0d57c1422fd6f7d029b63e662f5fae347 (diff)
downloadbuildroot-8cd06967b9beb025ca37f695f18beb6dc45d6a85.tar.gz
buildroot-8cd06967b9beb025ca37f695f18beb6dc45d6a85.tar.bz2
gawk: bump version and migrate to autotargets
Closes #1933 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/gawk/gawk-3.1.5-core.patch')
-rw-r--r--package/gawk/gawk-3.1.5-core.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/package/gawk/gawk-3.1.5-core.patch b/package/gawk/gawk-3.1.5-core.patch
deleted file mode 100644
index 17cd188c48..0000000000
--- a/package/gawk/gawk-3.1.5-core.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-fix an ugly core on a simple script
-
-http://lists.gnu.org/archive/html/bug-gnu-utils/2005-08/msg00040.html
-http://lists.gnu.org/archive/html/bug-gnu-utils/2005-08/msg00047.html
-
---- gawk/io.c
-+++ gawk/io.c
-@@ -2480,9 +2480,12 @@
- {
- struct stat sbuf;
- struct open_hook *oh;
-+ int iop_malloced = FALSE;
-
-- if (iop == NULL)
-+ if (iop == NULL) {
- emalloc(iop, IOBUF *, sizeof(IOBUF), "iop_alloc");
-+ iop_malloced = TRUE;
-+ }
- memset(iop, '\0', sizeof(IOBUF));
- iop->flag = 0;
- iop->fd = fd;
-@@ -2495,7 +2498,8 @@
- }
-
- if (iop->fd == INVALID_HANDLE) {
-- free(iop);
-+ if (iop_malloced)
-+ free(iop);
- return NULL;
- }
- if (isatty(iop->fd))