From 8bb97857e73b994a4224cca5945cae193114df33 Mon Sep 17 00:00:00 2001 From: Brian Pane Date: Sat, 14 Sep 2002 08:03:19 +0000 Subject: [PATCH] remove single-byte file reads git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96805 13f79535-47bb-0310-9956-ffa450edef68 --- support/htpasswd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support/htpasswd.c b/support/htpasswd.c index ca400dd3e1..e9ea9be7a7 100644 --- a/support/htpasswd.c +++ b/support/htpasswd.c @@ -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; -- 2.50.1