]> granicus.if.org Git - apache/commitdiff
We obviously have no idea if this code is right. We can't close unopened
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 8 Jul 2002 20:25:28 +0000 (20:25 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 8 Jul 2002 20:25:28 +0000 (20:25 +0000)
  files.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95981 13f79535-47bb-0310-9956-ffa450edef68

support/htpasswd.c

index d88b73da51c0a6af1144848af495ecf8cddfe214..aba4f3d98dd0a636998cdd48b36f80622f9991fe 100644 (file)
@@ -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.
      */