From: Bradley Nicholes Date: Mon, 29 Mar 2004 23:07:46 +0000 (+0000) Subject: Fix the comment delimiter in htdbm X-Git-Tag: 2.0.50~262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4332297fcf96179a9af677af429cfc8f0a39e018;p=thirdparty%2Fapache%2Fhttpd.git Fix the comment delimiter in htdbm Submitted by:Guenter Knauf Reviewed by: bnicholes, trawick, jjclar git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@103205 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 21d08246f3d..f092c70d3cb 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,10 @@ Changes with Apache 2.0.50 + *) Fix the comment delimiter in htdbm so that it correctly parses the + username comment. Also add a terminate function to allow NetWare + to pause the output before the screen is destroyed. + [Guenter Knauf , Brad Nicholes] + *) Fix crash when Apache was started with no Listen directives. [Michael Corcoran ] diff --git a/STATUS b/STATUS index 172d7892c9d..ba98963ccb5 100644 --- a/STATUS +++ b/STATUS @@ -1,5 +1,5 @@ APACHE 2.0 STATUS: -*-text-*- -Last modified at [$Date: 2004/03/29 21:41:13 $] +Last modified at [$Date: 2004/03/29 23:07:46 $] Release: @@ -110,12 +110,6 @@ PATCHES TO BACKPORT FROM 2.1 modules/dav/fs/lock.c: r1.31 +1: trawick - *) Fix the comment delimiter so that it correctly parses the username - comment. Also add a terminate function to allow NetWare to pause - the output before the screen is destroyed. - support/htdbm.c: r1.15 - +1: bnicholes, trawick, jjclar - *) Use apr_temp_dir_get for htdigest and remove the dependancy on the external cp/copy command. Remove the OMIT_DELONCLOSE #ifdef because removing the temp file happens automatically through diff --git a/support/htdbm.c b/support/htdbm.c index f262cb95d97..f8152606d38 100644 --- a/support/htdbm.c +++ b/support/htdbm.c @@ -105,9 +105,16 @@ struct htdbm_t { #define HTDBM_NOFILE 4 #define HTDBM_STDIN 5 +static void terminate(void) +{ + apr_terminate(); +#ifdef NETWARE + pressanykey(); +#endif +} + static void htdbm_terminate(htdbm_t *htdbm) { - if (htdbm->dbm) apr_dbm_close(htdbm->dbm); htdbm->dbm = NULL; @@ -254,7 +261,7 @@ static apr_status_t htdbm_list(htdbm_t *htdbm) fprintf(stderr, " %-32s", kb); strncpy(rec, val.dptr, val.dsize); rec[val.dsize] = '\0'; - cmnt = strchr(rec, ';'); + cmnt = strchr(rec, ':'); if (cmnt) fprintf(stderr, cmnt + 1); fprintf(stderr, "\n"); @@ -387,7 +394,7 @@ int main(int argc, const char * const argv[]) int args_left = 2; apr_app_initialize(&argc, &argv, NULL); - atexit(apr_terminate); + atexit(terminate); if ((rv = htdbm_init(&pool, &h)) != APR_SUCCESS) { fprintf(stderr, "Unable to initialize htdbm terminating!\n"); @@ -569,7 +576,6 @@ int main(int argc, const char * const argv[]) } } htdbm_terminate(h); - apr_terminate(); return 0; /* Suppress compiler warning. */ }