Changes with Apache 2.0.50
+ *) htpasswd no longer refuses to process files that contain empty
+ lines. [André Malo]
+
*) Regression from 1.3: At startup, suexec now will be checked for
availability, the setuid bit and user root. The works only if
httpd is compiled with the shipped APR version (0.9.5).
APACHE 2.0 STATUS: -*-text-*-
-Last modified at [$Date: 2004/05/26 23:03:12 $]
+Last modified at [$Date: 2004/05/26 23:14:03 $]
Release:
modules/mappers/mod_actions.c: r1.32, r1.34
+1: nd
- *) htpasswd should not refuse to process files containing empty lines.
- support/htpasswd.c: r1.76
- +1: nd, trawick, bnicholes
-
*) Disable AcceptEx on Win9x systems automatically. (broken in 2.0.49)
PR 28529
server/mpm/winnt/mpm_winnt.c: 1.311
char *user = NULL;
char tn[] = "htpasswd.tmp.XXXXXX";
char *dirname;
- char scratch[MAX_STRING_LEN];
+ char *scratch, cp[MAX_STRING_LEN];
int found = 0;
int i;
int alg = ALG_CRYPT;
while (apr_file_gets(line, sizeof(line), fpw) == APR_SUCCESS) {
char *colon;
- if ((line[0] == '#') || (line[0] == '\0')) {
+ strcpy(cp, line);
+ scratch = cp;
+ while (apr_isspace(*scratch)) {
+ ++scratch;
+ }
+
+ if (!*scratch || (*scratch == '#')) {
putline(ftemp, line);
continue;
}
- strcpy(scratch, line);
/*
* See if this is our user.
*/