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 17:49:38 GMT
brianp      2002/09/14 10:49:38

  Modified:    support  htpasswd.c
  Log:
  truncate existing file if "-c" is used
  
  Revision  Changes    Path
  1.64      +1 -1      httpd-2.0/support/htpasswd.c
  
  Index: htpasswd.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/htpasswd.c,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- htpasswd.c	14 Sep 2002 16:43:24 -0000	1.63
  +++ htpasswd.c	14 Sep 2002 17:49:37 -0000	1.64
  @@ -566,7 +566,7 @@
        * 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 (existing_file) {
  +    if (existing_file && !(mask & APHTP_NEWFILE)) {
           if (apr_file_open(&fpw, pwfilename, APR_READ | APR_BUFFERED,
                             APR_OS_DEFAULT, pool) != APR_SUCCESS) {
               apr_file_printf(errfile, "%s: unable to read file %s\n", 
  
  
  

Mime
View raw message