From: William A. Rowe Jr Date: Mon, 8 Jul 2002 20:25:28 +0000 (+0000) Subject: We obviously have no idea if this code is right. We can't close unopened X-Git-Tag: 2.0.40~298 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c94820f3a50cb7162c228ff2e1614cf2622a3ed8;p=apache We obviously have no idea if this code is right. We can't close unopened files. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95981 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/htpasswd.c b/support/htpasswd.c index d88b73da51..aba4f3d98d 100644 --- a/support/htpasswd.c +++ b/support/htpasswd.c @@ -595,13 +595,13 @@ int main(int argc, const char * const argv[]) found++; } } + apr_file_close(fpw); } if (!found) { apr_file_printf(errfile, "Adding "); putline(ftemp, record); } apr_file_printf(errfile, "password for user %s\n", user); - apr_file_close(fpw); /* The temporary file has all the data, just copy it to the new location. */