aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2007-10-25 12:43:22 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2007-10-25 12:43:22 +0000
commit149d554ac8ac57bd9979de8e317bfa3d5ce12078 (patch)
treee9674634f5e7c8646d2981c036519c5999062fb2 /usr.bin
parent168aca5df63211089320fb880f39af0f45c5794b (diff)
downloadsrc-149d554ac8ac57bd9979de8e317bfa3d5ce12078.tar.gz
src-149d554ac8ac57bd9979de8e317bfa3d5ce12078.zip
The AWK 23-Oct-2007 release includes fixes for FreeBSD PR's bin/104795
and bin/100443.
Notes
Notes: svn path=/head/; revision=172962
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/awk/Makefile2
-rw-r--r--usr.bin/awk/lib.c.diff27
-rw-r--r--usr.bin/awk/tran.c.diff22
3 files changed, 1 insertions, 50 deletions
diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile
index 3cd4aa8cc3d9..87eaa4166b86 100644
--- a/usr.bin/awk/Makefile
+++ b/usr.bin/awk/Makefile
@@ -29,7 +29,7 @@ CLEANFILES+= nawk.1
nawk.1: awk.1
cat ${.ALLSRC} > ${.TARGET}
-.for f in b.c lib.c main.c run.c tran.c
+.for f in b.c main.c run.c
${f}: ${AWKSRC}/${f} ${.CURDIR}/${f}.diff
patch -s -b .orig -o ${.TARGET} < ${.CURDIR}/${f}.diff ${AWKSRC}/${f}
CLEANFILES+= ${f}
diff --git a/usr.bin/awk/lib.c.diff b/usr.bin/awk/lib.c.diff
deleted file mode 100644
index 5b654be4d268..000000000000
--- a/usr.bin/awk/lib.c.diff
+++ /dev/null
@@ -1,27 +0,0 @@
-$FreeBSD$
-
-Index: lib.c
-===================================================================
-RCS file: /home/ncvs/src/contrib/one-true-awk/lib.c,v
-retrieving revision 1.1.1.5
-diff -u -p -u -r1.1.1.5 lib.c
---- lib.c 5 Jun 2007 15:33:51 -0000 1.1.1.5
-+++ lib.c 8 Jun 2007 04:14:51 -0000
-@@ -40,7 +40,7 @@ char *fields;
- int fieldssize = RECSIZE;
-
- Cell **fldtab; /* pointers to Cells */
--char inputFS[10] = " ";
-+char inputFS[100] = " ";
-
- #define MAXFLD 2
- int nfields = MAXFLD; /* last allocated slot for $i */
-@@ -58,7 +58,7 @@ static Cell dollar1 = { OCELL, CFLD, NUL
- void recinit(unsigned int n)
- {
- if ( (record = (char *) malloc(n)) == NULL
-- || (fields = (char *) malloc(n)) == NULL
-+ || (fields = (char *) malloc(n+1)) == NULL
- || (fldtab = (Cell **) malloc((nfields+1) * sizeof(Cell *))) == NULL
- || (fldtab[0] = (Cell *) malloc(sizeof(Cell))) == NULL )
- FATAL("out of space for $0 and fields");
diff --git a/usr.bin/awk/tran.c.diff b/usr.bin/awk/tran.c.diff
deleted file mode 100644
index 18f0f588b7e2..000000000000
--- a/usr.bin/awk/tran.c.diff
+++ /dev/null
@@ -1,22 +0,0 @@
-$FreeBSD$
-
-Index: tran.c
-===================================================================
-RCS file: /home/ncvs/src/contrib/one-true-awk/tran.c,v
-retrieving revision 1.1.1.4
-diff -u -p -r1.1.1.4 tran.c
---- tran.c 16 May 2005 19:11:35 -0000 1.1.1.4
-+++ tran.c 25 Oct 2006 20:56:18 -0000
-@@ -332,10 +332,10 @@ char *setsval(Cell *vp, const char *s) /
- donerec = 1;
- }
- t = tostring(s); /* in case it's self-assign */
-- vp->tval &= ~NUM;
-- vp->tval |= STR;
- if (freeable(vp))
- xfree(vp->sval);
-+ vp->tval &= ~NUM;
-+ vp->tval |= STR;
- vp->tval &= ~DONTFREE;
- dprintf( ("setsval %p: %s = \"%s (%p) \", t=%o r,f=%d,%d\n",
- vp, NN(vp->nval), t,t, vp->tval, donerec, donefld) );