Fix tinycdb dosen't work.

PR:		ports/48857
Submitted by:	Kimura Fuyuki <fuyuki@hadaly.org>
This commit is contained in:
Norikatsu Shigemura 2003-04-04 21:02:50 +00:00
parent 63356425d0
commit 7025199be8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78213
3 changed files with 14 additions and 0 deletions

View File

@ -8,6 +8,7 @@
PORTNAME= tinycdb
PORTVERSION= 0.73
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= ftp://ftp.corpit.ru/pub/tinycdb/

View File

@ -0,0 +1,11 @@
--- cdb.c.orig Mon Dec 10 06:18:02 2001
+++ cdb.c Mon Mar 3 08:38:57 2003
@@ -144,7 +144,7 @@
if (printf(mode == 'd' ? "+%u,%u:" : "+%u:", klen, vlen) < 0) return -1;
if (fcpy(f, stdout, klen, &pos, eod) != 0) return -1;
if (mode == 'd')
- if (!fputs(flags & F_MAP ? " " : "->", stdout))
+ if (fputs(flags & F_MAP ? " " : "->", stdout) == EOF)
return -1;
if (fcpy(f, mode == 'd' ? stdout : NULL, vlen, &pos, eod) != 0)
return -1;

View File

@ -1,3 +1,5 @@
It is analogous to cdb from D.J.Berstein, but written completely from scratch,
has some functionality removed and some new added compared to DJB's one, a bit
faster, and much easier to use (only one library needed at link time).
WWW: http://www.corpit.ru/mjt/tinycdb.html