httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/support htpasswd.c
Date Sat, 14 Sep 2002 08:03:19 GMT
brianp      2002/09/14 01:03:19

  Modified:    support  htpasswd.c
  Log:
  remove single-byte file reads
  
  Revision  Changes    Path
  1.61      +2 -2      httpd-2.0/support/htpasswd.c
  
  Index: htpasswd.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/htpasswd.c,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- htpasswd.c	14 Sep 2002 06:53:40 -0000	1.60
  +++ htpasswd.c	14 Sep 2002 08:03:19 -0000	1.61
  @@ -578,8 +578,8 @@
        * 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;
   
  
  
  

Mime
View raw message