diff options
author | Pete Fritchman <petef@FreeBSD.org> | 2003-05-11 16:56:13 +0000 |
---|---|---|
committer | Pete Fritchman <petef@FreeBSD.org> | 2003-05-11 16:56:13 +0000 |
commit | 6fcbe102487cbca3d35094e3395ae212acfcf2ee (patch) | |
tree | 563e929321885eba7f4a26a665a434a5ecc2ff1e /databases/dbview | |
parent | Comment out code when building in 5.x FreeBSD branch when using gcc (diff) |
- Don't do two read()s, we're not on windows and don't have a \r to strip
out. Also fix an off-by-one error when trying to trim trailing spaces.
- bump PORTREVISION
PR: 41719
Submitted by: Michael Pearce <mpearce@coreth.com>
Notes
Notes:
svn path=/head/; revision=80679
Diffstat (limited to 'databases/dbview')
-rw-r--r-- | databases/dbview/Makefile | 1 | ||||
-rw-r--r-- | databases/dbview/files/patch-ab | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/databases/dbview/Makefile b/databases/dbview/Makefile index dd89a2fc856e..7542aa5b5823 100644 --- a/databases/dbview/Makefile +++ b/databases/dbview/Makefile @@ -7,6 +7,7 @@ PORTNAME= dbview PORTVERSION= 1.0.3 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= ${MASTER_SITE_SUNSITE} \ ftp://ftp.infodrom.north.de/pub/Linux/Devel/dbview/ diff --git a/databases/dbview/files/patch-ab b/databases/dbview/files/patch-ab new file mode 100644 index 000000000000..dfc42c049f0d --- /dev/null +++ b/databases/dbview/files/patch-ab @@ -0,0 +1,21 @@ +--- db_dump.c.orig Tue Oct 8 02:25:54 1996 ++++ db_dump.c Fri Aug 16 14:24:09 2002 +@@ -116,7 +116,7 @@ + { + char *c=var; + +- for (c+=strlen(var); isspace (*c); c--); ++ for (c+=strlen(var)-1; isspace (*c); c--); + + *(++c) = '\0'; + return var; +@@ -210,7 +210,9 @@ + stack_field(fld); + } + read(dbfile,Buffer,1); /* read the silly little \r 0x0d character */ ++#ifdef I_USE_A_LAME_OS_LIKE_DOS + read(dbfile,Buffer,1); /* strange, it only works if we read another byte */ ++#endif + + return; + } |