You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/08/06 01:13:06 UTC

DO NOT REPLY [Bug 11484] New: - htpasswd update causes duplicates

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11484>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11484

htpasswd update causes duplicates

           Summary: htpasswd update causes duplicates
           Product: Apache httpd-2.0
           Version: 2.0.39
          Platform: All
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: aaron.duncan@centrelink.gov.au


If htpasswd is called for an existing user, a new entry is created instead of 
modifying the existing entry.

It seems that an appropriate change would to be to enter "found = 1"
at line 594

    if (strcmp(user, scratch) != 0) {
        putline(ftemp, line);
        continue;
    }
    else {
        /* We found the user we were looking for, add him to the file.
         */
        apr_file_printf(errfile, "Updating ");
        putline(ftemp, record);

    }

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org