I'm a new user to Apache so I hope this is just something I'm doing wrong. I've created a user password file with the -c option, and when trying to add new users, it just overwrites the existing file and my previous user disappears. I have patched due to the "-c and -n options conflict" error but am not sure whether or not this is the source of the problem.
Just to clarify, when I add additional users, I'm not using the -c option.
Created attachment 2206 [details] Fix for "-c -n" conflict, respect "-c", not add again on update, add newline for output
The patch I uploaded fixes several things: 1) Resolve the "-c and -n options conflict" error 2) Respect "-c" and actually truncate file 3) On update actually set "found" so record doesn't get added again 4) Add a newline to the record before writing it to the file
Should be under support component on all platforms and all OSs. Also, the priority is High and the severity is Critical, as htpasswd will overwrite passwords in existing files, resulting in loss of data.
*** This bug has been marked as a duplicate of 10422 ***