revert maintainer to ports@ from heko@, and plug a couple of off-by-ones

in environment parsing code
This commit is contained in:
avsm 2003-06-17 00:35:32 +00:00
parent 05b8a6f6d4
commit 47b26d3b14
2 changed files with 22 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.31 2002/10/30 00:35:33 naddy Exp $
# $OpenBSD: Makefile,v 1.32 2003/06/17 00:35:32 avsm Exp $
COMMENT= "Berkeley DB package, revision 3"
@ -11,8 +11,6 @@ MASTER_SITES= ${HOMEPAGE}/update/snapshot/
TCL_VERSION= 8.3
MAINTAINER= Heikki Korpela <heko@openbsd.org>
# License: BSD+SleepyCat's additions.
# Must purchase license to redistribute if not distributing the source.
PERMIT_PACKAGE_CDROM= Yes

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-env_env_open_c,v 1.1 2003/06/17 00:35:32 avsm Exp $
--- env/env_open.c.orig Tue Jun 17 01:25:53 2003
+++ env/env_open.c Tue Jun 17 01:26:27 2003
@@ -784,7 +784,7 @@ illegal: __db_err(dbenv, "mis-formatted
return (dbenv->set_lg_dir(dbenv, value));
if (!strcasecmp(name, "set_lk_detect")) {
- if (sscanf(value, "%40s %c", arg, &v4) != 1)
+ if (sscanf(value, "%39s %c", arg, &v4) != 1)
goto badarg;
if (!strcasecmp(value, "db_lock_default"))
flags = DB_LOCK_DEFAULT;
@@ -840,7 +840,7 @@ illegal: __db_err(dbenv, "mis-formatted
}
if (!strcasecmp(name, "set_verbose")) {
- if (sscanf(value, "%40s %c", arg, &v4) != 1)
+ if (sscanf(value, "%39s %c", arg, &v4) != 1)
goto badarg;
if (!strcasecmp(value, "db_verb_chkpoint"))