From: Brian Pane Date: Sat, 14 Sep 2002 08:03:19 +0000 (+0000) Subject: remove single-byte file reads X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bb97857e73b994a4224cca5945cae193114df33;p=apache remove single-byte file reads git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96805 13f79535-47bb-0310-9956-ffa450edef68 --- 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;