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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to