From c94820f3a50cb7162c228ff2e1614cf2622a3ed8 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 8 Jul 2002 20:25:28 +0000 Subject: [PATCH] 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 --- support/htpasswd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.50.1