]> granicus.if.org Git - apache/commitdiff
remove single-byte file reads
authorBrian Pane <brianp@apache.org>
Sat, 14 Sep 2002 08:03:19 +0000 (08:03 +0000)
committerBrian Pane <brianp@apache.org>
Sat, 14 Sep 2002 08:03:19 +0000 (08:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96805 13f79535-47bb-0310-9956-ffa450edef68

support/htpasswd.c

index ca400dd3e1728e3b8b28f3ced1e734cac7759db3..e9ea9be7a7f469e5056b133902f58a598ed86361 100644 (file)
@@ -578,8 +578,8 @@ int main(int argc, const char * const argv[])
      * If we're not creating a new file, copy records from the existing
      * one to the temporary file until we find the specified user.
      */
-    if (apr_file_open(&fpw, pwfilename, APR_READ, APR_OS_DEFAULT, 
-                      pool) == APR_SUCCESS) {
+    if (apr_file_open(&fpw, pwfilename, APR_READ | APR_BUFFERED,
+                      APR_OS_DEFAULT, pool) == APR_SUCCESS) {
         while (apr_file_gets(line, sizeof(line), fpw) == APR_SUCCESS) {
             char *colon;