You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Thom May <th...@planetarytramp.net> on 2002/07/02 23:39:01 UTC

[PATCH] htpasswd: when updating a record, don't create it too

found wasn't getting incremented when we update an exisiting record, thus an
additional new record was getting created.
Cheers,
-Thom
-- 
Thom May -> thom@planetarytramp.net

<spectra> Hello!
<spectra> What is the voting period? From Mar 24th until?
<asuffield> until the candidate manoj wants to win is in the lead
* asuffield ducks into the icbm shelter


Index: support/htpasswd.c
===================================================================
RCS file: /home/cvspublic/httpd-2.0/support/htpasswd.c,v
retrieving revision 1.50
diff -u -u -r1.50 htpasswd.c
--- support/htpasswd.c	2 Jul 2002 19:48:38 -0000	1.50
+++ support/htpasswd.c	2 Jul 2002 21:38:34 -0000
@@ -593,6 +593,7 @@
                  */
                 apr_file_printf(errfile, "Updating ");
                 putline(ftemp, record);
+                found++;
             }
         }
     }

Re: [PATCH] htpasswd: when updating a record, don't create it too

Posted by Justin Erenkrantz <je...@apache.org>.
On Tue, Jul 02, 2002 at 10:39:01PM +0100, Thom May wrote:
> found wasn't getting incremented when we update an exisiting record, thus an
> additional new record was getting created.

Committed.  Thanks!  -- justin